aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91rm9200/board-csb637.c
diff options
context:
space:
mode:
authorAndrew Victor <andrew@sanpeople.com>2006-09-27 08:23:00 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-28 06:53:47 -0400
commitf21738341ca330ec83ef978ee63ffa5ecf13f082 (patch)
treebe42abeb9ef2509a5a0c4187f4aa076d8f3c2dee /arch/arm/mach-at91rm9200/board-csb637.c
parent2eeaaa21de68cb8869d3a54438a9224321d3dd03 (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-csb637.c')
-rw-r--r--arch/arm/mach-at91rm9200/board-csb637.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/arch/arm/mach-at91rm9200/board-csb637.c b/arch/arm/mach-at91rm9200/board-csb637.c
index 880350997a3b..a29fa0e822ce 100644
--- a/arch/arm/mach-at91rm9200/board-csb637.c
+++ b/arch/arm/mach-at91rm9200/board-csb637.c
@@ -38,14 +38,6 @@
38 38
39#include "generic.h" 39#include "generic.h"
40 40
41static void __init csb637_init_irq(void)
42{
43 /* Initialize AIC controller */
44 at91rm9200_init_irq(NULL);
45
46 /* Set up the GPIO interrupts */
47 at91_gpio_irq_setup(BGA_GPIO_BANKS);
48}
49 41
50/* 42/*
51 * Serial port configuration. 43 * Serial port configuration.
@@ -61,7 +53,7 @@ static struct at91_uart_config __initdata csb637_uart_config = {
61static void __init csb637_map_io(void) 53static void __init csb637_map_io(void)
62{ 54{
63 /* Initialize processor: 3.6864 MHz crystal */ 55 /* Initialize processor: 3.6864 MHz crystal */
64 at91rm9200_initialize(3686400); 56 at91rm9200_initialize(3686400, AT91RM9200_BGA);
65 57
66 /* Setup the LEDs */ 58 /* Setup the LEDs */
67 at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); 59 at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);
@@ -70,6 +62,11 @@ static void __init csb637_map_io(void)
70 at91_init_serial(&csb637_uart_config); 62 at91_init_serial(&csb637_uart_config);
71} 63}
72 64
65static void __init csb637_init_irq(void)
66{
67 at91rm9200_init_interrupts(NULL);
68}
69
73static struct at91_eth_data __initdata csb637_eth_data = { 70static struct at91_eth_data __initdata csb637_eth_data = {
74 .phy_irq_pin = AT91_PIN_PC0, 71 .phy_irq_pin = AT91_PIN_PC0,
75 .is_rmii = 0, 72 .is_rmii = 0,