aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-r8a7790.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2013-06-28 07:27:13 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-07-17 01:26:53 -0400
commit8333d8c995169e489a81241bd632a4b9370ed7c3 (patch)
treea73b42d1be1cc4abe8858c3adb1de903af22c294 /arch/arm/mach-shmobile/setup-r8a7790.c
parent99ade1a0f02e086248874d9908def3e8e4539418 (diff)
ARM: shmobile: Make r8a7790 Arch timer optional
Update the r8a7790 code to allow using other timers than Arch timer for clock events. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7790.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7790.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7790.c b/arch/arm/mach-shmobile/setup-r8a7790.c
index ece60c635de7..f01542e13e58 100644
--- a/arch/arm/mach-shmobile/setup-r8a7790.c
+++ b/arch/arm/mach-shmobile/setup-r8a7790.c
@@ -208,6 +208,13 @@ void __init r8a7790_timer_init(void)
208 shmobile_timer_init(); 208 shmobile_timer_init();
209} 209}
210 210
211void __init r8a7790_init_delay(void)
212{
213#ifndef CONFIG_ARM_ARCH_TIMER
214 shmobile_setup_delay(1300, 2, 4); /* Cortex-A15 @ 1300MHz */
215#endif
216}
217
211#ifdef CONFIG_USE_OF 218#ifdef CONFIG_USE_OF
212 219
213static const char *r8a7790_boards_compat_dt[] __initdata = { 220static const char *r8a7790_boards_compat_dt[] __initdata = {
@@ -216,6 +223,7 @@ static const char *r8a7790_boards_compat_dt[] __initdata = {
216}; 223};
217 224
218DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)") 225DT_MACHINE_START(R8A7790_DT, "Generic R8A7790 (Flattened Device Tree)")
226 .init_early = r8a7790_init_delay,
219 .init_time = r8a7790_timer_init, 227 .init_time = r8a7790_timer_init,
220 .dt_compat = r8a7790_boards_compat_dt, 228 .dt_compat = r8a7790_boards_compat_dt,
221MACHINE_END 229MACHINE_END