diff options
author | Andrew Victor <andrew@sanpeople.com> | 2006-09-27 08:23:00 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-09-28 06:53:47 -0400 |
commit | f21738341ca330ec83ef978ee63ffa5ecf13f082 (patch) | |
tree | be42abeb9ef2509a5a0c4187f4aa076d8f3c2dee /arch/arm/mach-at91rm9200/board-kb9202.c | |
parent | 2eeaaa21de68cb8869d3a54438a9224321d3dd03 (diff) |
[ARM] 3867/1: AT91 GPIO update
This patch makes the AT91 gpio.c support processor-generic (AT91RM9200
and AT91SAM9xxx). The GPIO controllers supported by a particular AT91
processor are defined in the processor-specific file and are registered
with gpio.c at startup.
Signed-off-by: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91rm9200/board-kb9202.c')
-rw-r--r-- | arch/arm/mach-at91rm9200/board-kb9202.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/arm/mach-at91rm9200/board-kb9202.c b/arch/arm/mach-at91rm9200/board-kb9202.c index 935238ffa330..55b08f9b9537 100644 --- a/arch/arm/mach-at91rm9200/board-kb9202.c +++ b/arch/arm/mach-at91rm9200/board-kb9202.c | |||
@@ -40,14 +40,6 @@ | |||
40 | 40 | ||
41 | #include "generic.h" | 41 | #include "generic.h" |
42 | 42 | ||
43 | static void __init kb9202_init_irq(void) | ||
44 | { | ||
45 | /* Initialize AIC controller */ | ||
46 | at91rm9200_init_irq(NULL); | ||
47 | |||
48 | /* Set up the GPIO interrupts */ | ||
49 | at91_gpio_irq_setup(PQFP_GPIO_BANKS); | ||
50 | } | ||
51 | 43 | ||
52 | /* | 44 | /* |
53 | * Serial port configuration. | 45 | * Serial port configuration. |
@@ -63,7 +55,7 @@ static struct at91_uart_config __initdata kb9202_uart_config = { | |||
63 | static void __init kb9202_map_io(void) | 55 | static void __init kb9202_map_io(void) |
64 | { | 56 | { |
65 | /* Initialize processor: 10 MHz crystal */ | 57 | /* Initialize processor: 10 MHz crystal */ |
66 | at91rm9200_initialize(10000000); | 58 | at91rm9200_initialize(10000000, AT91RM9200_PQFP); |
67 | 59 | ||
68 | /* Set up the LEDs */ | 60 | /* Set up the LEDs */ |
69 | at91_init_leds(AT91_PIN_PC19, AT91_PIN_PC18); | 61 | at91_init_leds(AT91_PIN_PC19, AT91_PIN_PC18); |
@@ -72,6 +64,11 @@ static void __init kb9202_map_io(void) | |||
72 | at91_init_serial(&kb9202_uart_config); | 64 | at91_init_serial(&kb9202_uart_config); |
73 | } | 65 | } |
74 | 66 | ||
67 | static void __init kb9202_init_irq(void) | ||
68 | { | ||
69 | at91rm9200_init_interrupts(NULL); | ||
70 | } | ||
71 | |||
75 | static struct at91_eth_data __initdata kb9202_eth_data = { | 72 | static struct at91_eth_data __initdata kb9202_eth_data = { |
76 | .phy_irq_pin = AT91_PIN_PB29, | 73 | .phy_irq_pin = AT91_PIN_PB29, |
77 | .is_rmii = 0, | 74 | .is_rmii = 0, |