diff options
Diffstat (limited to 'arch/arm/mach-at91/board-sam9rlek.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9rlek.c | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/arch/arm/mach-at91/board-sam9rlek.c b/arch/arm/mach-at91/board-sam9rlek.c index bc0546d7245f..ffc0597aee8d 100644 --- a/arch/arm/mach-at91/board-sam9rlek.c +++ b/arch/arm/mach-at91/board-sam9rlek.c | |||
@@ -29,29 +29,24 @@ | |||
29 | 29 | ||
30 | #include <asm/arch/board.h> | 30 | #include <asm/arch/board.h> |
31 | #include <asm/arch/gpio.h> | 31 | #include <asm/arch/gpio.h> |
32 | #include <asm/arch/at91sam926x_mc.h> | 32 | #include <asm/arch/at91sam9_smc.h> |
33 | 33 | ||
34 | #include "generic.h" | 34 | #include "generic.h" |
35 | 35 | ||
36 | 36 | ||
37 | /* | ||
38 | * Serial port configuration. | ||
39 | * 0 .. 3 = USART0 .. USART3 | ||
40 | * 4 = DBGU | ||
41 | */ | ||
42 | static struct at91_uart_config __initdata ek_uart_config = { | ||
43 | .console_tty = 0, /* ttyS0 */ | ||
44 | .nr_tty = 2, | ||
45 | .tty_map = { 4, 0, -1, -1, -1 } /* ttyS0, ..., ttyS4 */ | ||
46 | }; | ||
47 | |||
48 | static void __init ek_map_io(void) | 37 | static void __init ek_map_io(void) |
49 | { | 38 | { |
50 | /* Initialize processor: 12.000 MHz crystal */ | 39 | /* Initialize processor: 12.000 MHz crystal */ |
51 | at91sam9rl_initialize(12000000); | 40 | at91sam9rl_initialize(12000000); |
52 | 41 | ||
53 | /* Setup the serial ports and console */ | 42 | /* DGBU on ttyS0. (Rx & Tx only) */ |
54 | at91_init_serial(&ek_uart_config); | 43 | at91_register_uart(0, 0, 0); |
44 | |||
45 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS) */ | ||
46 | at91_register_uart(AT91SAM9RL_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS); | ||
47 | |||
48 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
49 | at91_set_serial_console(0); | ||
55 | } | 50 | } |
56 | 51 | ||
57 | static void __init ek_init_irq(void) | 52 | static void __init ek_init_irq(void) |