Bin Meng a47ef6e93a hw/riscv: clint: Avoid using hard-coded timebase frequency
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 Meng <bin.meng@windriver.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <1598924352-89526-16-git-send-email-bmeng.cn@gmail.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2020-09-09 15:54:19 -07:00
..
2020-08-28 15:14:40 +01:00
2020-08-27 14:04:55 -04:00
2020-08-27 14:04:54 -04:00
2020-09-01 11:08:57 +02:00
2020-08-27 14:04:54 -04:00
2020-08-27 14:04:54 -04:00
2020-09-08 10:08:42 +10:00
2019-08-16 13:31:52 +02:00
2020-09-03 14:12:48 +01:00
2020-09-09 15:54:18 -07:00
2020-06-15 22:05:28 +02:00