diff options
Diffstat (limited to 'arch/arm/mach-at91/board-sam9g20ek.c')
-rw-r--r-- | arch/arm/mach-at91/board-sam9g20ek.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/arch/arm/mach-at91/board-sam9g20ek.c b/arch/arm/mach-at91/board-sam9g20ek.c index 8923ec9f5831..3d615532ae5c 100644 --- a/arch/arm/mach-at91/board-sam9g20ek.c +++ b/arch/arm/mach-at91/board-sam9g20ek.c | |||
@@ -65,20 +65,6 @@ static void __init ek_init_early(void) | |||
65 | { | 65 | { |
66 | /* Initialize processor: 18.432 MHz crystal */ | 66 | /* Initialize processor: 18.432 MHz crystal */ |
67 | at91_initialize(18432000); | 67 | at91_initialize(18432000); |
68 | |||
69 | /* DBGU on ttyS0. (Rx & Tx only) */ | ||
70 | at91_register_uart(0, 0, 0); | ||
71 | |||
72 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
73 | at91_register_uart(AT91SAM9260_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | ||
74 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | ||
75 | | ATMEL_UART_RI); | ||
76 | |||
77 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | ||
78 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); | ||
79 | |||
80 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
81 | at91_set_serial_console(0); | ||
82 | } | 68 | } |
83 | 69 | ||
84 | /* | 70 | /* |
@@ -372,6 +358,16 @@ static struct i2c_board_info __initdata ek_i2c_devices[] = { | |||
372 | static void __init ek_board_init(void) | 358 | static void __init ek_board_init(void) |
373 | { | 359 | { |
374 | /* Serial */ | 360 | /* Serial */ |
361 | /* DBGU on ttyS0. (Rx & Tx only) */ | ||
362 | at91_register_uart(0, 0, 0); | ||
363 | |||
364 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
365 | at91_register_uart(AT91SAM9260_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | ||
366 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | ||
367 | | ATMEL_UART_RI); | ||
368 | |||
369 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | ||
370 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); | ||
375 | at91_add_device_serial(); | 371 | at91_add_device_serial(); |
376 | /* USB Host */ | 372 | /* USB Host */ |
377 | at91_add_device_usbh(&ek_usbh_data); | 373 | at91_add_device_usbh(&ek_usbh_data); |