summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRaymond Mao <[email protected]>2026-06-30 09:19:04 +0800
committerTim Ouyang <[email protected]>2026-07-21 16:57:13 +0800
commit6db85c4aef0ee7abe7738a52d507b15749771849 (patch)
tree2b90316a3d0dcfc4c8912d9aae50332e7c245d0c /include
parentae94d8af7fb1bcbaa98f82995da4c80a4cb74aac (diff)
configs: k1: enable early timer support
Enable CONFIG_TIMER_EARLY to allow udelay() calls during early initialization phases. This is required for proper timing operations before the full timer driver is available. Signed-off-by: Raymond Mao <[email protected]> Signed-off-by: Guodong Xu <[email protected]> Tested-by: Songsong Zhang <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/configs/k1.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configs/k1.h b/include/configs/k1.h
index 15a40f2128f..e09c3594905 100644
--- a/include/configs/k1.h
+++ b/include/configs/k1.h
@@ -12,4 +12,9 @@
#define CFG_SYS_NS16550_IER 0x40 /* UART Unit Enable */
#define CFG_SYS_SDRAM_BASE 0x0
+#define RISCV_MMODE_TIMERBASE 0xe4000000
+#define RISCV_MMODE_TIMEROFF 0xbff8
+#define RISCV_MMODE_TIMER_FREQ 24000000
+#define RISCV_SMODE_TIMER_FREQ 24000000
+
#endif /* __CONFIG_H */