summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/cpu.c
diff options
context:
space:
mode:
authorMattias Wallin <mattias.wallin@stericsson.com>2011-05-27 08:30:34 (GMT)
committerLinus Walleij <linus.walleij@linaro.org>2011-09-22 13:43:20 (GMT)
commit7ed00af7a960031ad00017e3ebcf1d3ef22af498 (patch)
treee96b004167dcdb8a4c9643c5d2fc82139267c079 /arch/arm/mach-ux500/cpu.c
parent489bccea6334514a8e13436f10d0a274777bf17a (diff)
downloadlinux-7ed00af7a960031ad00017e3ebcf1d3ef22af498.tar.xz
ARM: ux500: add support for clocksource DBX500 PRCMU
This patch adds support for the DBX500 PRCMU clocksource to ux500 platforms. Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.co> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500/cpu.c')
-rw-r--r--arch/arm/mach-ux500/cpu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/cpu.c b/arch/arm/mach-ux500/cpu.c
index 1da23bb..c0e4593 100644
--- a/arch/arm/mach-ux500/cpu.c
+++ b/arch/arm/mach-ux500/cpu.c
@@ -10,6 +10,7 @@
#include <linux/clk.h>
#include <linux/mfd/db8500-prcmu.h>
#include <linux/mfd/db5500-prcmu.h>
+#include <linux/clksrc-dbx500-prcmu.h>
#include <asm/cacheflush.h>
#include <asm/hardware/cache-l2x0.h>
@@ -140,7 +141,15 @@ static void __init ux500_timer_init(void)
else
ux500_unknown_soc();
+ if (cpu_is_u8500())
+ clksrc_dbx500_timer_base = __io_address(U8500_PRCMU_TIMER_4_BASE);
+ else if (cpu_is_u5500())
+ clksrc_dbx500_timer_base = __io_address(U5500_PRCMU_TIMER_3_BASE);
+ else
+ ux500_unknown_soc();
+
nmdk_timer_init();
+ clksrc_dbx500_prcmu_init();
}
struct sys_timer ux500_timer = {