aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-r8a7779.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7779.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7779.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c
index 9bb133c2a932..ce57d90c4bbc 100644
--- a/arch/arm/mach-shmobile/setup-r8a7779.c
+++ b/arch/arm/mach-shmobile/setup-r8a7779.c
@@ -33,6 +33,7 @@
33#include <mach/common.h> 33#include <mach/common.h>
34#include <asm/mach-types.h> 34#include <asm/mach-types.h>
35#include <asm/mach/arch.h> 35#include <asm/mach/arch.h>
36#include <asm/mach/time.h>
36#include <asm/mach/map.h> 37#include <asm/mach/map.h>
37#include <asm/hardware/cache-l2x0.h> 38#include <asm/hardware/cache-l2x0.h>
38 39
@@ -260,6 +261,12 @@ void __init r8a7779_add_standard_devices(void)
260 ARRAY_SIZE(r8a7779_late_devices)); 261 ARRAY_SIZE(r8a7779_late_devices));
261} 262}
262 263
264static void __init r8a7779_earlytimer_init(void)
265{
266 r8a7779_clock_init();
267 shmobile_earlytimer_init();
268}
269
263void __init r8a7779_add_early_devices(void) 270void __init r8a7779_add_early_devices(void)
264{ 271{
265 early_platform_add_devices(r8a7779_early_devices, 272 early_platform_add_devices(r8a7779_early_devices,
@@ -280,4 +287,7 @@ void __init r8a7779_add_early_devices(void)
280 * As a final step pass earlyprint=sh-sci.2,115200 on the kernel 287 * As a final step pass earlyprint=sh-sci.2,115200 on the kernel
281 * command line in case of the marzen board. 288 * command line in case of the marzen board.
282 */ 289 */
290
291 /* override timer setup with soc-specific code */
292 shmobile_timer.init = r8a7779_earlytimer_init;
283} 293}