diff options
Diffstat (limited to 'arch/arm/mach-at91/board-cpu9krea.c')
-rw-r--r-- | arch/arm/mach-at91/board-cpu9krea.c | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/arch/arm/mach-at91/board-cpu9krea.c b/arch/arm/mach-at91/board-cpu9krea.c index 5f3680e7c883..69951ec7dbf3 100644 --- a/arch/arm/mach-at91/board-cpu9krea.c +++ b/arch/arm/mach-at91/board-cpu9krea.c | |||
@@ -52,34 +52,6 @@ static void __init cpu9krea_init_early(void) | |||
52 | { | 52 | { |
53 | /* Initialize processor: 18.432 MHz crystal */ | 53 | /* Initialize processor: 18.432 MHz crystal */ |
54 | at91_initialize(18432000); | 54 | at91_initialize(18432000); |
55 | |||
56 | /* DGBU on ttyS0. (Rx & Tx only) */ | ||
57 | at91_register_uart(0, 0, 0); | ||
58 | |||
59 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
60 | at91_register_uart(AT91SAM9260_ID_US0, 1, ATMEL_UART_CTS | | ||
61 | ATMEL_UART_RTS | ATMEL_UART_DTR | ATMEL_UART_DSR | | ||
62 | ATMEL_UART_DCD | ATMEL_UART_RI); | ||
63 | |||
64 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | ||
65 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | | ||
66 | ATMEL_UART_RTS); | ||
67 | |||
68 | /* USART2 on ttyS3. (Rx, Tx, RTS, CTS) */ | ||
69 | at91_register_uart(AT91SAM9260_ID_US2, 3, ATMEL_UART_CTS | | ||
70 | ATMEL_UART_RTS); | ||
71 | |||
72 | /* USART3 on ttyS4. (Rx, Tx) */ | ||
73 | at91_register_uart(AT91SAM9260_ID_US3, 4, 0); | ||
74 | |||
75 | /* USART4 on ttyS5. (Rx, Tx) */ | ||
76 | at91_register_uart(AT91SAM9260_ID_US4, 5, 0); | ||
77 | |||
78 | /* USART5 on ttyS6. (Rx, Tx) */ | ||
79 | at91_register_uart(AT91SAM9260_ID_US5, 6, 0); | ||
80 | |||
81 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
82 | at91_set_serial_console(0); | ||
83 | } | 55 | } |
84 | 56 | ||
85 | /* | 57 | /* |
@@ -352,6 +324,30 @@ static void __init cpu9krea_board_init(void) | |||
352 | /* NOR */ | 324 | /* NOR */ |
353 | cpu9krea_add_device_nor(); | 325 | cpu9krea_add_device_nor(); |
354 | /* Serial */ | 326 | /* Serial */ |
327 | /* DGBU on ttyS0. (Rx & Tx only) */ | ||
328 | at91_register_uart(0, 0, 0); | ||
329 | |||
330 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
331 | at91_register_uart(AT91SAM9260_ID_US0, 1, ATMEL_UART_CTS | | ||
332 | ATMEL_UART_RTS | ATMEL_UART_DTR | ATMEL_UART_DSR | | ||
333 | ATMEL_UART_DCD | ATMEL_UART_RI); | ||
334 | |||
335 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | ||
336 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | | ||
337 | ATMEL_UART_RTS); | ||
338 | |||
339 | /* USART2 on ttyS3. (Rx, Tx, RTS, CTS) */ | ||
340 | at91_register_uart(AT91SAM9260_ID_US2, 3, ATMEL_UART_CTS | | ||
341 | ATMEL_UART_RTS); | ||
342 | |||
343 | /* USART3 on ttyS4. (Rx, Tx) */ | ||
344 | at91_register_uart(AT91SAM9260_ID_US3, 4, 0); | ||
345 | |||
346 | /* USART4 on ttyS5. (Rx, Tx) */ | ||
347 | at91_register_uart(AT91SAM9260_ID_US4, 5, 0); | ||
348 | |||
349 | /* USART5 on ttyS6. (Rx, Tx) */ | ||
350 | at91_register_uart(AT91SAM9260_ID_US5, 6, 0); | ||
355 | at91_add_device_serial(); | 351 | at91_add_device_serial(); |
356 | /* USB Host */ | 352 | /* USB Host */ |
357 | at91_add_device_usbh(&cpu9krea_usbh_data); | 353 | at91_add_device_usbh(&cpu9krea_usbh_data); |