riscv: timer: Add support for an early timer
authorPragnesh Patel <pragnesh.patel@sifive.com>
Sun, 17 Jan 2021 12:41:25 +0000 (18:11 +0530)
committerAndes <uboot@andestech.com>
Mon, 18 Jan 2021 03:06:32 +0000 (11:06 +0800)
commitbc8d12bfd8750de265b742f2ab9cdde2726ea85f
tree2bbdf6fd3df17150cba305c93de6c906043d8dea
parenta80f85138c9457141c799c022b5c924252031512
riscv: timer: Add support for an early timer

Added support for timer_early_get_count() and timer_early_get_rate()
This is mostly useful in tracing.

Signed-off-by: Pragnesh Patel <pragnesh.patel@sifive.com>
Reviewed-by: Rick Chen <rick@andestech.com>
drivers/timer/andes_plmt_timer.c
drivers/timer/riscv_timer.c
drivers/timer/sifive_clint_timer.c
include/configs/ax25-ae350.h
include/configs/qemu-riscv.h
include/configs/sifive-fu540.h