diff options
author | Magnus Damm <damm@opensource.se> | 2012-03-06 09:36:45 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-03-12 22:19:45 +0100 |
commit | 3be26fdba82a2ae8ed568ab5d4a0a2e252f18b13 (patch) | |
tree | 4f3b6cae63d97938c2e8a6fac351654fc5998d42 /arch/arm/mach-shmobile/setup-sh73a0.c | |
parent | ARM: mach-shmobile: sh7372, AP4EVB and Mackerel timer rework (diff) | |
download | linux-3be26fdba82a2ae8ed568ab5d4a0a2e252f18b13.tar.xz linux-3be26fdba82a2ae8ed568ab5d4a0a2e252f18b13.zip |
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/setup-sh73a0.c')
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh73a0.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c index 988eeb3782c7..b6a0734a738e 100644 --- a/arch/arm/mach-shmobile/setup-sh73a0.c +++ b/arch/arm/mach-shmobile/setup-sh73a0.c @@ -36,6 +36,7 @@ #include <asm/mach-types.h> #include <asm/mach/map.h> #include <asm/mach/arch.h> +#include <asm/mach/time.h> static struct map_desc sh73a0_io_desc[] __initdata = { /* create a 1:1 entity map for 0xe6xxxxxx @@ -686,6 +687,12 @@ void __init sh73a0_add_standard_devices(void) ARRAY_SIZE(sh73a0_late_devices)); } +static void __init sh73a0_earlytimer_init(void) +{ + sh73a0_clock_init(); + shmobile_earlytimer_init(); +} + void __init sh73a0_add_early_devices(void) { early_platform_add_devices(sh73a0_early_devices, @@ -693,4 +700,7 @@ void __init sh73a0_add_early_devices(void) /* setup early console here as well */ shmobile_setup_console(); + + /* override timer setup with soc-specific code */ + shmobile_timer.init = sh73a0_earlytimer_init; } |