summaryrefslogtreecommitdiff
path: root/lib/utils/timer/Kconfig
diff options
context:
space:
mode:
authorYu Chien Peter Lin <peterlin@andestech.com>2022-10-14 03:32:46 +0300
committerAnup Patel <anup@brainfault.org>2022-10-23 07:56:39 +0300
commitef9f02e7fba47412d6c057ba78fd3d89cb4e5fc3 (patch)
treeb74d62fd2260c139112ec40eb90975f08ffa2f65 /lib/utils/timer/Kconfig
parent88f58a3694c936791eb875d3cc85f1cde41c3d09 (diff)
downloadopensbi-ef9f02e7fba47412d6c057ba78fd3d89cb4e5fc3.tar.xz
lib: utils/timer: Add Andes fdt timer support
Since we can get the PLMT base address and timer frequency from device tree, move plmt timer device to fdt timer framework. dts example (Quad-core AX45MP): cpus { ... timebase-frequency = <0x3938700>; ... } soc { ... plmt0@e6000000 { compatible = "andestech,plmt0"; reg = <0x00 0xe6000000 0x00 0x100000>; interrupts-extended = <&cpu0_intc 0x07 &cpu1_intc 0x07 &cpu2_intc 0x07 &cpu3_intc 0x07>; }; ... } Signed-off-by: Yu Chien Peter Lin <peterlin@andestech.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils/timer/Kconfig')
-rw-r--r--lib/utils/timer/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/utils/timer/Kconfig b/lib/utils/timer/Kconfig
index 23c48c5..ba211b6 100644
--- a/lib/utils/timer/Kconfig
+++ b/lib/utils/timer/Kconfig
@@ -14,10 +14,19 @@ config FDT_TIMER_MTIMER
select TIMER_MTIMER
default n
+config FDT_TIMER_PLMT
+ bool "Andes PLMT FDT driver"
+ select TIMER_PLMT
+ default n
+
endif
config TIMER_MTIMER
bool "ACLINT MTIMER support"
default n
+config TIMER_PLMT
+ bool "Andes PLMT support"
+ default n
+
endmenu