aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/realview_eb.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2008-02-04 11:45:03 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-02-04 12:52:27 -0500
commit39e823e35b791b905e0d8eba62e8b3a0b3351936 (patch)
tree0bb4c51e56d3ff903d53479e1a602a50ee05fc54 /arch/arm/mach-realview/realview_eb.c
parent8cc4c5488a28fe6a1f834e99317bb762798600f7 (diff)
[ARM] 4821/1: RealView: Remove the platform dependencies from localtimer.c
This patch removes the TWD_BASE macro used to set up and configure the local timers on ARM11MPCore. The twd_base_addr and twd_size variables are defined in localtimer.c and set from the realview_eb_init function. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-realview/realview_eb.c')
-rw-r--r--arch/arm/mach-realview/realview_eb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c
index 20b05f2ed61c..8ded2cc79cca 100644
--- a/arch/arm/mach-realview/realview_eb.c
+++ b/arch/arm/mach-realview/realview_eb.c
@@ -309,9 +309,13 @@ static void __init realview_eb_timer_init(void)
309{ 309{
310 unsigned int timer_irq; 310 unsigned int timer_irq;
311 311
312 if (core_tile_eb11mp()) 312 if (core_tile_eb11mp()) {
313#ifdef CONFIG_LOCAL_TIMERS
314 twd_base_addr = __io_address(REALVIEW_EB11MP_TWD_BASE);
315 twd_size = REALVIEW_EB11MP_TWD_SIZE;
316#endif
313 timer_irq = IRQ_EB11MP_TIMER0_1; 317 timer_irq = IRQ_EB11MP_TIMER0_1;
314 else 318 } else
315 timer_irq = IRQ_EB_TIMER0_1; 319 timer_irq = IRQ_EB_TIMER0_1;
316 320
317 realview_timer_init(timer_irq); 321 realview_timer_init(timer_irq);