diff options
Diffstat (limited to 'arch/arm/mach-at91/board-gsia18s.c')
-rw-r--r-- | arch/arm/mach-at91/board-gsia18s.c | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/arch/arm/mach-at91/board-gsia18s.c b/arch/arm/mach-at91/board-gsia18s.c index 230e71969fb7..3e0dfa643a86 100644 --- a/arch/arm/mach-at91/board-gsia18s.c +++ b/arch/arm/mach-at91/board-gsia18s.c | |||
@@ -41,38 +41,6 @@ | |||
41 | static void __init gsia18s_init_early(void) | 41 | static void __init gsia18s_init_early(void) |
42 | { | 42 | { |
43 | stamp9g20_init_early(); | 43 | stamp9g20_init_early(); |
44 | |||
45 | /* | ||
46 | * USART0 on ttyS1 (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI). | ||
47 | * Used for Internal Analog Modem. | ||
48 | */ | ||
49 | at91_register_uart(AT91SAM9260_ID_US0, 1, | ||
50 | ATMEL_UART_CTS | ATMEL_UART_RTS | | ||
51 | ATMEL_UART_DTR | ATMEL_UART_DSR | | ||
52 | ATMEL_UART_DCD | ATMEL_UART_RI); | ||
53 | /* | ||
54 | * USART1 on ttyS2 (Rx, Tx, CTS, RTS). | ||
55 | * Used for GPS or WiFi or Data stream. | ||
56 | */ | ||
57 | at91_register_uart(AT91SAM9260_ID_US1, 2, | ||
58 | ATMEL_UART_CTS | ATMEL_UART_RTS); | ||
59 | /* | ||
60 | * USART2 on ttyS3 (Rx, Tx, CTS, RTS). | ||
61 | * Used for External Modem. | ||
62 | */ | ||
63 | at91_register_uart(AT91SAM9260_ID_US2, 3, | ||
64 | ATMEL_UART_CTS | ATMEL_UART_RTS); | ||
65 | /* | ||
66 | * USART3 on ttyS4 (Rx, Tx, RTS). | ||
67 | * Used for RS-485. | ||
68 | */ | ||
69 | at91_register_uart(AT91SAM9260_ID_US3, 4, ATMEL_UART_RTS); | ||
70 | |||
71 | /* | ||
72 | * USART4 on ttyS5 (Rx, Tx). | ||
73 | * Used for TRX433 Radio Module. | ||
74 | */ | ||
75 | at91_register_uart(AT91SAM9260_ID_US4, 5, 0); | ||
76 | } | 44 | } |
77 | 45 | ||
78 | /* | 46 | /* |
@@ -558,6 +526,37 @@ static int __init gsia18s_power_off_init(void) | |||
558 | 526 | ||
559 | static void __init gsia18s_board_init(void) | 527 | static void __init gsia18s_board_init(void) |
560 | { | 528 | { |
529 | /* | ||
530 | * USART0 on ttyS1 (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI). | ||
531 | * Used for Internal Analog Modem. | ||
532 | */ | ||
533 | at91_register_uart(AT91SAM9260_ID_US0, 1, | ||
534 | ATMEL_UART_CTS | ATMEL_UART_RTS | | ||
535 | ATMEL_UART_DTR | ATMEL_UART_DSR | | ||
536 | ATMEL_UART_DCD | ATMEL_UART_RI); | ||
537 | /* | ||
538 | * USART1 on ttyS2 (Rx, Tx, CTS, RTS). | ||
539 | * Used for GPS or WiFi or Data stream. | ||
540 | */ | ||
541 | at91_register_uart(AT91SAM9260_ID_US1, 2, | ||
542 | ATMEL_UART_CTS | ATMEL_UART_RTS); | ||
543 | /* | ||
544 | * USART2 on ttyS3 (Rx, Tx, CTS, RTS). | ||
545 | * Used for External Modem. | ||
546 | */ | ||
547 | at91_register_uart(AT91SAM9260_ID_US2, 3, | ||
548 | ATMEL_UART_CTS | ATMEL_UART_RTS); | ||
549 | /* | ||
550 | * USART3 on ttyS4 (Rx, Tx, RTS). | ||
551 | * Used for RS-485. | ||
552 | */ | ||
553 | at91_register_uart(AT91SAM9260_ID_US3, 4, ATMEL_UART_RTS); | ||
554 | |||
555 | /* | ||
556 | * USART4 on ttyS5 (Rx, Tx). | ||
557 | * Used for TRX433 Radio Module. | ||
558 | */ | ||
559 | at91_register_uart(AT91SAM9260_ID_US4, 5, 0); | ||
561 | stamp9g20_board_init(); | 560 | stamp9g20_board_init(); |
562 | at91_add_device_usbh(&usbh_data); | 561 | at91_add_device_usbh(&usbh_data); |
563 | at91_add_device_udc(&udc_data); | 562 | at91_add_device_udc(&udc_data); |