diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-04-02 16:47:29 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-04-04 04:52:21 -0400 |
commit | a3da12229f4f9bee2ed66ac34a54a4e8b74bcbcb (patch) | |
tree | 7d0e06b560ff8b7dee204f4fb2d8c5e40cded821 /arch/arm/mach-at91/board-sam9261ek.c | |
parent | d7a2415f7a48ce4fc16cc769f96d0df818648837 (diff) |
[ARM] 4905/1: [AT91] Atmel SAM9 boards updated to new-style UART initialization
Convert the Atmel SAM9260-EK, SAM9261-EK, SAM9263-EK and SAM9RL-EK
boards to use the new-style UART initialization.
Signed-off-by: Sedji Gaouaou <sedji.gaouaou@atmel.com>
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-sam9261ek.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9261ek.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/arch/arm/mach-at91/board-sam9261ek.c b/arch/arm/mach-at91/board-sam9261ek.c index f71ff750b3d2..3c73825b58de 100644 --- a/arch/arm/mach-at91/board-sam9261ek.c +++ b/arch/arm/mach-at91/board-sam9261ek.c | |||
@@ -49,17 +49,6 @@ | |||
49 | #include "generic.h" | 49 | #include "generic.h" |
50 | 50 | ||
51 | 51 | ||
52 | /* | ||
53 | * Serial port configuration. | ||
54 | * 0 .. 2 = USART0 .. USART2 | ||
55 | * 3 = DBGU | ||
56 | */ | ||
57 | static struct at91_uart_config __initdata ek_uart_config = { | ||
58 | .console_tty = 0, /* ttyS0 */ | ||
59 | .nr_tty = 1, | ||
60 | .tty_map = { 3, -1, -1, -1 } /* ttyS0, ..., ttyS3 */ | ||
61 | }; | ||
62 | |||
63 | static void __init ek_map_io(void) | 52 | static void __init ek_map_io(void) |
64 | { | 53 | { |
65 | /* Initialize processor: 18.432 MHz crystal */ | 54 | /* Initialize processor: 18.432 MHz crystal */ |
@@ -68,8 +57,11 @@ static void __init ek_map_io(void) | |||
68 | /* Setup the LEDs */ | 57 | /* Setup the LEDs */ |
69 | at91_init_leds(AT91_PIN_PA13, AT91_PIN_PA14); | 58 | at91_init_leds(AT91_PIN_PA13, AT91_PIN_PA14); |
70 | 59 | ||
71 | /* Setup the serial ports and console */ | 60 | /* DGBU on ttyS0. (Rx & Tx only) */ |
72 | at91_init_serial(&ek_uart_config); | 61 | at91_register_uart(0, 0, 0); |
62 | |||
63 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
64 | at91_set_serial_console(0); | ||
73 | } | 65 | } |
74 | 66 | ||
75 | static void __init ek_init_irq(void) | 67 | static void __init ek_init_irq(void) |