aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-ag5evm.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-ag5evm.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-ag5evm.c')
-rw-r--r--arch/arm/mach-shmobile/board-ag5evm.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c
index cd894a200d52..675660d951d0 100644
--- a/arch/arm/mach-shmobile/board-ag5evm.c
+++ b/arch/arm/mach-shmobile/board-ag5evm.c
@@ -46,7 +46,6 @@
46#include <mach/common.h> 46#include <mach/common.h>
47#include <asm/mach-types.h> 47#include <asm/mach-types.h>
48#include <asm/mach/arch.h> 48#include <asm/mach/arch.h>
49#include <asm/mach/time.h>
50#include <asm/hardware/gic.h> 49#include <asm/hardware/gic.h>
51#include <asm/hardware/cache-l2x0.h> 50#include <asm/hardware/cache-l2x0.h>
52#include <asm/traps.h> 51#include <asm/traps.h>
@@ -600,17 +599,6 @@ static void __init ag5evm_init(void)
600 platform_add_devices(ag5evm_devices, ARRAY_SIZE(ag5evm_devices)); 599 platform_add_devices(ag5evm_devices, ARRAY_SIZE(ag5evm_devices));
601} 600}
602 601
603static void __init ag5evm_timer_init(void)
604{
605 sh73a0_clock_init();
606 shmobile_timer.init();
607 return;
608}
609
610struct sys_timer ag5evm_timer = {
611 .init = ag5evm_timer_init,
612};
613
614MACHINE_START(AG5EVM, "ag5evm") 602MACHINE_START(AG5EVM, "ag5evm")
615 .map_io = sh73a0_map_io, 603 .map_io = sh73a0_map_io,
616 .init_early = sh73a0_add_early_devices, 604 .init_early = sh73a0_add_early_devices,
@@ -618,5 +606,5 @@ MACHINE_START(AG5EVM, "ag5evm")
618 .init_irq = sh73a0_init_irq, 606 .init_irq = sh73a0_init_irq,
619 .handle_irq = gic_handle_irq, 607 .handle_irq = gic_handle_irq,
620 .init_machine = ag5evm_init, 608 .init_machine = ag5evm_init,
621 .timer = &ag5evm_timer, 609 .timer = &shmobile_timer,
622MACHINE_END 610MACHINE_END