aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-kota2.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2012-03-06 03:36:45 -0500
committerRafael J. Wysocki <rjw@sisk.pl>2012-03-12 17:19:45 -0400
commit3be26fdba82a2ae8ed568ab5d4a0a2e252f18b13 (patch)
tree4f3b6cae63d97938c2e8a6fac351654fc5998d42 /arch/arm/mach-shmobile/board-kota2.c
parent17254bffd6e4fda97d825acec153614f09bb33e7 (diff)
ARM: mach-shmobile: sh73a0, AG5EVM and Kota2 timer rework
Move the SoC specific timer code from AG5EVM and Kota2 to sh73a0 setup code. This makes is possible to share the SoC specific timer code across boards and it also removes the need for a board specific timer structure. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/board-kota2.c')
-rw-r--r--arch/arm/mach-shmobile/board-kota2.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-shmobile/board-kota2.c b/arch/arm/mach-shmobile/board-kota2.c
index cfc5f413cf0..61c06729466 100644
--- a/arch/arm/mach-shmobile/board-kota2.c
+++ b/arch/arm/mach-shmobile/board-kota2.c
@@ -513,17 +513,6 @@ static void __init kota2_init(void)
513 platform_add_devices(kota2_devices, ARRAY_SIZE(kota2_devices)); 513 platform_add_devices(kota2_devices, ARRAY_SIZE(kota2_devices));
514} 514}
515 515
516static void __init kota2_timer_init(void)
517{
518 sh73a0_clock_init();
519 shmobile_timer.init();
520 return;
521}
522
523struct sys_timer kota2_timer = {
524 .init = kota2_timer_init,
525};
526
527MACHINE_START(KOTA2, "kota2") 516MACHINE_START(KOTA2, "kota2")
528 .map_io = sh73a0_map_io, 517 .map_io = sh73a0_map_io,
529 .init_early = sh73a0_add_early_devices, 518 .init_early = sh73a0_add_early_devices,
@@ -531,5 +520,5 @@ MACHINE_START(KOTA2, "kota2")
531 .init_irq = sh73a0_init_irq, 520 .init_irq = sh73a0_init_irq,
532 .handle_irq = gic_handle_irq, 521 .handle_irq = gic_handle_irq,
533 .init_machine = kota2_init, 522 .init_machine = kota2_init,
534 .timer = &kota2_timer, 523 .timer = &shmobile_timer,
535MACHINE_END 524MACHINE_END