diff mbox series

[3/3] clocksource: arch_timer: Add arm,cortex-a7/15-timer in of_match list

Message ID 20220316095433.20225-4-singh.kuldeep87k@gmail.com
State New
Headers show
Series Fix dtbs warnings for arch timer | expand

Commit Message

Kuldeep Singh March 16, 2022, 9:54 a.m. UTC
Few platforms such as Renesas RZ/N1D, Calxeda, Alpine etc. are using
arm,cortex-a15-timer and arm,cortex-a7-timer entries in conjugation with
arm,armv7-timer which are not currently defined in driver file. Add
these entries in arch_timer_of_match list to bring them in use.

Signed-off-by: Kuldeep Singh <singh.kuldeep87k@gmail.com>
---
 drivers/clocksource/arm_arch_timer.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
index 1ecd52f903b8..805e60c09916 100644
--- a/drivers/clocksource/arm_arch_timer.c
+++ b/drivers/clocksource/arm_arch_timer.c
@@ -1266,6 +1266,8 @@  static int __init arch_timer_mem_register(void __iomem *base, unsigned int irq)
 static const struct of_device_id arch_timer_of_match[] __initconst = {
 	{ .compatible   = "arm,armv7-timer",    },
 	{ .compatible   = "arm,armv8-timer",    },
+	{ .compatible   = "arm,cortex-a7-timer",    },
+	{ .compatible   = "arm,cortex-a15-timer",    },
 	{},
 };