summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-03-08 15:49:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-03-11 10:27:44 +0100
commitdece707522434d5c8eb35da8c98d0269112457f7 (patch)
treec54c782e428a70ad6e7b281873c96561ef3dd4e1 /drivers
parent6f9ff8615c1541941a04431c106fd4576a5d3976 (diff)
downloadbarebox-dece707522434d5c8eb35da8c98d0269112457f7.tar.gz
clocksource: Enable architected timer support for CPU_V7
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clocksource/Kconfig2
-rw-r--r--drivers/clocksource/armv8-timer.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index b0502c3..43c5bfc 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -73,7 +73,7 @@ config CLOCKSOURCE_ATMEL_PIT
config CLOCKSOURCE_ARMV8_TIMER
bool
default y
- depends on ARM && CPU_64v8
+ depends on ARM && (CPU_64v8 || CPU_V7)
config CLOCKSOURCE_ARM_GLOBAL_TIMER
bool
diff --git a/drivers/clocksource/armv8-timer.c b/drivers/clocksource/armv8-timer.c
index 918232e..3095f8c 100644
--- a/drivers/clocksource/armv8-timer.c
+++ b/drivers/clocksource/armv8-timer.c
@@ -39,6 +39,7 @@ static int armv8_timer_probe(struct device_d *dev)
}
static struct of_device_id armv8_timer_dt_ids[] = {
+ { .compatible = "arm,armv7-timer", },
{ .compatible = "arm,armv8-timer", },
{ }
};