Re: [PATCH v3 15/16] hw/riscv: clint: Avoid using hard-coded timebase frequency

2020-09-01 Thread Philippe Mathieu-Daudé
On 9/1/20 3:39 AM, Bin Meng wrote: > From: Bin Meng > > At present the CLINT timestamp is using a hard-coded timebase > frequency value SIFIVE_CLINT_TIMEBASE_FREQ. This might not be > true for all boards. > > Add a new 'timebase-freq' property to the CLINT device, and > update various functions

[PATCH v3 15/16] hw/riscv: clint: Avoid using hard-coded timebase frequency

2020-08-31 Thread Bin Meng
From: Bin Meng At present the CLINT timestamp is using a hard-coded timebase frequency value SIFIVE_CLINT_TIMEBASE_FREQ. This might not be true for all boards. Add a new 'timebase-freq' property to the CLINT device, and update various functions to accept this as a parameter. Signed-off-by: Bin