diff options
Diffstat (limited to 'arch/arm/mach-realview/realview_eb.c')
-rw-r--r-- | arch/arm/mach-realview/realview_eb.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index f36af1335024..20b05f2ed61c 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <asm/mach/arch.h> | 36 | #include <asm/mach/arch.h> |
37 | #include <asm/mach/map.h> | 37 | #include <asm/mach/map.h> |
38 | #include <asm/mach/mmc.h> | 38 | #include <asm/mach/mmc.h> |
39 | #include <asm/mach/time.h> | ||
39 | 40 | ||
40 | #include <asm/arch/board-eb.h> | 41 | #include <asm/arch/board-eb.h> |
41 | #include <asm/arch/irqs.h> | 42 | #include <asm/arch/irqs.h> |
@@ -304,6 +305,22 @@ static void realview_eb11mp_fixup(void) | |||
304 | realview_eb_smc91x_resources[1].end = IRQ_EB11MP_ETH; | 305 | realview_eb_smc91x_resources[1].end = IRQ_EB11MP_ETH; |
305 | } | 306 | } |
306 | 307 | ||
308 | static void __init realview_eb_timer_init(void) | ||
309 | { | ||
310 | unsigned int timer_irq; | ||
311 | |||
312 | if (core_tile_eb11mp()) | ||
313 | timer_irq = IRQ_EB11MP_TIMER0_1; | ||
314 | else | ||
315 | timer_irq = IRQ_EB_TIMER0_1; | ||
316 | |||
317 | realview_timer_init(timer_irq); | ||
318 | } | ||
319 | |||
320 | static struct sys_timer realview_eb_timer = { | ||
321 | .init = realview_eb_timer_init, | ||
322 | }; | ||
323 | |||
307 | static void __init realview_eb_init(void) | 324 | static void __init realview_eb_init(void) |
308 | { | 325 | { |
309 | int i; | 326 | int i; |
@@ -339,6 +356,6 @@ MACHINE_START(REALVIEW_EB, "ARM-RealView EB") | |||
339 | .boot_params = 0x00000100, | 356 | .boot_params = 0x00000100, |
340 | .map_io = realview_eb_map_io, | 357 | .map_io = realview_eb_map_io, |
341 | .init_irq = gic_init_irq, | 358 | .init_irq = gic_init_irq, |
342 | .timer = &realview_timer, | 359 | .timer = &realview_eb_timer, |
343 | .init_machine = realview_eb_init, | 360 | .init_machine = realview_eb_init, |
344 | MACHINE_END | 361 | MACHINE_END |