summaryrefslogtreecommitdiff
path: root/include/configs/qemu-riscv.h
diff options
context:
space:
mode:
authorPragnesh Patel <pragnesh.patel@sifive.com>2021-01-17 15:41:25 +0300
committerAndes <uboot@andestech.com>2021-01-18 06:06:32 +0300
commitbc8d12bfd8750de265b742f2ab9cdde2726ea85f (patch)
tree2bbdf6fd3df17150cba305c93de6c906043d8dea /include/configs/qemu-riscv.h
parenta80f85138c9457141c799c022b5c924252031512 (diff)
downloadu-boot-bc8d12bfd8750de265b742f2ab9cdde2726ea85f.tar.xz
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>
Diffstat (limited to 'include/configs/qemu-riscv.h')
-rw-r--r--include/configs/qemu-riscv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/qemu-riscv.h b/include/configs/qemu-riscv.h
index a2f33587c2..5291de83f8 100644
--- a/include/configs/qemu-riscv.h
+++ b/include/configs/qemu-riscv.h
@@ -29,6 +29,11 @@
#define CONFIG_STANDALONE_LOAD_ADDR 0x80200000
+#define RISCV_MMODE_TIMERBASE 0x2000000
+#define RISCV_MMODE_TIMER_FREQ 1000000
+
+#define RISCV_SMODE_TIMER_FREQ 1000000
+
/* Environment options */
#ifndef CONFIG_SPL_BUILD