[ARM] 4820/1: RealView: Select the timer IRQ at run-time

This patch sets the timer IRQ at run-time by moving the sys_timer
structure and the timer_init function to the realview_eb.c file. This
allows multiple RealView platforms to be compiled in the same kernel
image.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Catalin Marinas
2008-02-04 17:43:02 +01:00
committed by Russell King
parent c4057f5260
commit 8cc4c5488a
3 changed files with 24 additions and 13 deletions

View File

@@ -27,8 +27,6 @@
#include <asm/leds.h>
#include <asm/io.h>
extern struct sys_timer realview_timer;
#define AMBA_DEVICE(name,busid,base,plat) \
static struct amba_device name##_device = { \
.dev = { \
@@ -55,5 +53,6 @@ extern struct clcd_board clcd_plat_data;
extern void __iomem *gic_cpu_base_addr;
extern void realview_leds_event(led_event_t ledevt);
extern void realview_timer_init(unsigned int timer_irq);
#endif