diff options
Diffstat (limited to 'arch/arm/mach-at91/board-yl-9200.c')
-rw-r--r-- | arch/arm/mach-at91/board-yl-9200.c | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/arch/arm/mach-at91/board-yl-9200.c b/arch/arm/mach-at91/board-yl-9200.c index 38dd279d30b2..d56665ea4b55 100644 --- a/arch/arm/mach-at91/board-yl-9200.c +++ b/arch/arm/mach-at91/board-yl-9200.c | |||
@@ -58,26 +58,6 @@ static void __init yl9200_init_early(void) | |||
58 | 58 | ||
59 | /* Initialize processor: 18.432 MHz crystal */ | 59 | /* Initialize processor: 18.432 MHz crystal */ |
60 | at91_initialize(18432000); | 60 | at91_initialize(18432000); |
61 | |||
62 | /* Setup the LEDs D2=PB17 (timer), D3=PB16 (cpu) */ | ||
63 | at91_init_leds(AT91_PIN_PB16, AT91_PIN_PB17); | ||
64 | |||
65 | /* DBGU on ttyS0. (Rx & Tx only) */ | ||
66 | at91_register_uart(0, 0, 0); | ||
67 | |||
68 | /* USART1 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
69 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | ||
70 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | ||
71 | | ATMEL_UART_RI); | ||
72 | |||
73 | /* USART0 on ttyS2. (Rx & Tx only to JP3) */ | ||
74 | at91_register_uart(AT91RM9200_ID_US0, 2, 0); | ||
75 | |||
76 | /* USART3 on ttyS3. (Rx, Tx, RTS - RS485 interface) */ | ||
77 | at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_RTS); | ||
78 | |||
79 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
80 | at91_set_serial_console(0); | ||
81 | } | 61 | } |
82 | 62 | ||
83 | /* | 63 | /* |
@@ -560,7 +540,23 @@ void __init yl9200_add_device_video(void) {} | |||
560 | 540 | ||
561 | static void __init yl9200_board_init(void) | 541 | static void __init yl9200_board_init(void) |
562 | { | 542 | { |
543 | /* Setup the LEDs D2=PB17 (timer), D3=PB16 (cpu) */ | ||
544 | at91_init_leds(AT91_PIN_PB16, AT91_PIN_PB17); | ||
545 | |||
563 | /* Serial */ | 546 | /* Serial */ |
547 | /* DBGU on ttyS0. (Rx & Tx only) */ | ||
548 | at91_register_uart(0, 0, 0); | ||
549 | |||
550 | /* USART1 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
551 | at91_register_uart(AT91RM9200_ID_US1, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | ||
552 | | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD | ||
553 | | ATMEL_UART_RI); | ||
554 | |||
555 | /* USART0 on ttyS2. (Rx & Tx only to JP3) */ | ||
556 | at91_register_uart(AT91RM9200_ID_US0, 2, 0); | ||
557 | |||
558 | /* USART3 on ttyS3. (Rx, Tx, RTS - RS485 interface) */ | ||
559 | at91_register_uart(AT91RM9200_ID_US3, 3, ATMEL_UART_RTS); | ||
564 | at91_add_device_serial(); | 560 | at91_add_device_serial(); |
565 | /* Ethernet */ | 561 | /* Ethernet */ |
566 | at91_add_device_eth(&yl9200_eth_data); | 562 | at91_add_device_eth(&yl9200_eth_data); |