diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2008-04-18 17:43:11 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2008-04-18 17:43:11 -0400 |
commit | 80192735e4b01a2e4d437699f2e9b5b93dfab13c (patch) | |
tree | 1096c3278bc60c925f1818c776e4b3e88c20a23c /arch/arm/mach-realview/realview_eb.c | |
parent | a44ddfd5bf5354281eebd0f0ae0d6dcf8818fc5c (diff) |
RealView: Move the timer definitions into the EB specific files
This patch moves the timer definitions from platform.h into board-eb.h
as they are different on PB11MPCore and PB1176. It also adds
timerX_va_base variables in core.c which are set by the
realview_eb_timer_init function before invoking realview_timer_init.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-realview/realview_eb.c')
-rw-r--r-- | arch/arm/mach-realview/realview_eb.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c index 860e3ca833ed..c5e5f07b5f5e 100644 --- a/arch/arm/mach-realview/realview_eb.c +++ b/arch/arm/mach-realview/realview_eb.c | |||
@@ -66,13 +66,13 @@ static struct map_desc realview_eb_io_desc[] __initdata = { | |||
66 | .length = SZ_4K, | 66 | .length = SZ_4K, |
67 | .type = MT_DEVICE, | 67 | .type = MT_DEVICE, |
68 | }, { | 68 | }, { |
69 | .virtual = IO_ADDRESS(REALVIEW_TIMER0_1_BASE), | 69 | .virtual = IO_ADDRESS(REALVIEW_EB_TIMER0_1_BASE), |
70 | .pfn = __phys_to_pfn(REALVIEW_TIMER0_1_BASE), | 70 | .pfn = __phys_to_pfn(REALVIEW_EB_TIMER0_1_BASE), |
71 | .length = SZ_4K, | 71 | .length = SZ_4K, |
72 | .type = MT_DEVICE, | 72 | .type = MT_DEVICE, |
73 | }, { | 73 | }, { |
74 | .virtual = IO_ADDRESS(REALVIEW_TIMER2_3_BASE), | 74 | .virtual = IO_ADDRESS(REALVIEW_EB_TIMER2_3_BASE), |
75 | .pfn = __phys_to_pfn(REALVIEW_TIMER2_3_BASE), | 75 | .pfn = __phys_to_pfn(REALVIEW_EB_TIMER2_3_BASE), |
76 | .length = SZ_4K, | 76 | .length = SZ_4K, |
77 | .type = MT_DEVICE, | 77 | .type = MT_DEVICE, |
78 | }, | 78 | }, |
@@ -337,6 +337,11 @@ static void __init realview_eb_timer_init(void) | |||
337 | { | 337 | { |
338 | unsigned int timer_irq; | 338 | unsigned int timer_irq; |
339 | 339 | ||
340 | timer0_va_base = __io_address(REALVIEW_EB_TIMER0_1_BASE); | ||
341 | timer1_va_base = __io_address(REALVIEW_EB_TIMER0_1_BASE) + 0x20; | ||
342 | timer2_va_base = __io_address(REALVIEW_EB_TIMER2_3_BASE); | ||
343 | timer3_va_base = __io_address(REALVIEW_EB_TIMER2_3_BASE) + 0x20; | ||
344 | |||
340 | if (core_tile_eb11mp()) { | 345 | if (core_tile_eb11mp()) { |
341 | #ifdef CONFIG_LOCAL_TIMERS | 346 | #ifdef CONFIG_LOCAL_TIMERS |
342 | twd_base_addr = __io_address(REALVIEW_EB11MP_TWD_BASE); | 347 | twd_base_addr = __io_address(REALVIEW_EB11MP_TWD_BASE); |