diff options
Diffstat (limited to 'arch/arm/mach-at91/board-csb637.c')
-rw-r--r-- | arch/arm/mach-at91/board-csb637.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/arm/mach-at91/board-csb637.c b/arch/arm/mach-at91/board-csb637.c index c5c721d27f42..419fd19b620b 100644 --- a/arch/arm/mach-at91/board-csb637.c +++ b/arch/arm/mach-at91/board-csb637.c | |||
@@ -40,27 +40,16 @@ | |||
40 | #include "generic.h" | 40 | #include "generic.h" |
41 | 41 | ||
42 | 42 | ||
43 | /* | ||
44 | * Serial port configuration. | ||
45 | * 0 .. 3 = USART0 .. USART3 | ||
46 | * 4 = DBGU | ||
47 | */ | ||
48 | static struct at91_uart_config __initdata csb637_uart_config = { | ||
49 | .console_tty = 0, /* ttyS0 */ | ||
50 | .nr_tty = 2, | ||
51 | .tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
52 | }; | ||
53 | |||
54 | static void __init csb637_map_io(void) | 43 | static void __init csb637_map_io(void) |
55 | { | 44 | { |
56 | /* Initialize processor: 3.6864 MHz crystal */ | 45 | /* Initialize processor: 3.6864 MHz crystal */ |
57 | at91rm9200_initialize(3686400, AT91RM9200_BGA); | 46 | at91rm9200_initialize(3686400, AT91RM9200_BGA); |
58 | 47 | ||
59 | /* Setup the LEDs */ | 48 | /* DBGU on ttyS0 */ |
60 | at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2); | 49 | at91_register_uart(0, 0, 0); |
61 | 50 | ||
62 | /* Setup the serial ports and console */ | 51 | /* make console=ttyS0 the default */ |
63 | at91_init_serial(&csb637_uart_config); | 52 | at91_set_serial_console(0); |
64 | } | 53 | } |
65 | 54 | ||
66 | static void __init csb637_init_irq(void) | 55 | static void __init csb637_init_irq(void) |
@@ -118,8 +107,19 @@ static struct platform_device csb_flash = { | |||
118 | .num_resources = ARRAY_SIZE(csb_flash_resources), | 107 | .num_resources = ARRAY_SIZE(csb_flash_resources), |
119 | }; | 108 | }; |
120 | 109 | ||
110 | static struct gpio_led csb_leds[] = { | ||
111 | { /* "d1", red */ | ||
112 | .name = "d1", | ||
113 | .gpio = AT91_PIN_PB2, | ||
114 | .active_low = 1, | ||
115 | .default_trigger = "heartbeat", | ||
116 | }, | ||
117 | }; | ||
118 | |||
121 | static void __init csb637_board_init(void) | 119 | static void __init csb637_board_init(void) |
122 | { | 120 | { |
121 | /* LED(s) */ | ||
122 | at91_gpio_leds(csb_leds, ARRAY_SIZE(csb_leds)); | ||
123 | /* Serial */ | 123 | /* Serial */ |
124 | at91_add_device_serial(); | 124 | at91_add_device_serial(); |
125 | /* Ethernet */ | 125 | /* Ethernet */ |