diff options
Diffstat (limited to 'arch/arm/mach-at91/board-foxg20.c')
-rw-r--r-- | arch/arm/mach-at91/board-foxg20.c | 71 |
1 files changed, 33 insertions, 38 deletions
diff --git a/arch/arm/mach-at91/board-foxg20.c b/arch/arm/mach-at91/board-foxg20.c index caf017f0f4ee..33411e6ecb1f 100644 --- a/arch/arm/mach-at91/board-foxg20.c +++ b/arch/arm/mach-at91/board-foxg20.c | |||
@@ -61,44 +61,6 @@ static void __init foxg20_init_early(void) | |||
61 | { | 61 | { |
62 | /* Initialize processor: 18.432 MHz crystal */ | 62 | /* Initialize processor: 18.432 MHz crystal */ |
63 | at91_initialize(18432000); | 63 | at91_initialize(18432000); |
64 | |||
65 | /* DBGU on ttyS0. (Rx & Tx only) */ | ||
66 | at91_register_uart(0, 0, 0); | ||
67 | |||
68 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
69 | at91_register_uart(AT91SAM9260_ID_US0, 1, | ||
70 | ATMEL_UART_CTS | ||
71 | | ATMEL_UART_RTS | ||
72 | | ATMEL_UART_DTR | ||
73 | | ATMEL_UART_DSR | ||
74 | | ATMEL_UART_DCD | ||
75 | | ATMEL_UART_RI); | ||
76 | |||
77 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | ||
78 | at91_register_uart(AT91SAM9260_ID_US1, 2, | ||
79 | ATMEL_UART_CTS | ||
80 | | ATMEL_UART_RTS); | ||
81 | |||
82 | /* USART2 on ttyS3. (Rx & Tx only) */ | ||
83 | at91_register_uart(AT91SAM9260_ID_US2, 3, 0); | ||
84 | |||
85 | /* USART3 on ttyS4. (Rx, Tx, RTS, CTS) */ | ||
86 | at91_register_uart(AT91SAM9260_ID_US3, 4, | ||
87 | ATMEL_UART_CTS | ||
88 | | ATMEL_UART_RTS); | ||
89 | |||
90 | /* USART4 on ttyS5. (Rx & Tx only) */ | ||
91 | at91_register_uart(AT91SAM9260_ID_US4, 5, 0); | ||
92 | |||
93 | /* USART5 on ttyS6. (Rx & Tx only) */ | ||
94 | at91_register_uart(AT91SAM9260_ID_US5, 6, 0); | ||
95 | |||
96 | /* set serial console to ttyS0 (ie, DBGU) */ | ||
97 | at91_set_serial_console(0); | ||
98 | |||
99 | /* Set the internal pull-up resistor on DRXD */ | ||
100 | at91_set_A_periph(AT91_PIN_PB14, 1); | ||
101 | |||
102 | } | 64 | } |
103 | 65 | ||
104 | /* | 66 | /* |
@@ -241,6 +203,39 @@ static struct i2c_board_info __initdata foxg20_i2c_devices[] = { | |||
241 | static void __init foxg20_board_init(void) | 203 | static void __init foxg20_board_init(void) |
242 | { | 204 | { |
243 | /* Serial */ | 205 | /* Serial */ |
206 | /* DBGU on ttyS0. (Rx & Tx only) */ | ||
207 | at91_register_uart(0, 0, 0); | ||
208 | |||
209 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ | ||
210 | at91_register_uart(AT91SAM9260_ID_US0, 1, | ||
211 | ATMEL_UART_CTS | ||
212 | | ATMEL_UART_RTS | ||
213 | | ATMEL_UART_DTR | ||
214 | | ATMEL_UART_DSR | ||
215 | | ATMEL_UART_DCD | ||
216 | | ATMEL_UART_RI); | ||
217 | |||
218 | /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ | ||
219 | at91_register_uart(AT91SAM9260_ID_US1, 2, | ||
220 | ATMEL_UART_CTS | ||
221 | | ATMEL_UART_RTS); | ||
222 | |||
223 | /* USART2 on ttyS3. (Rx & Tx only) */ | ||
224 | at91_register_uart(AT91SAM9260_ID_US2, 3, 0); | ||
225 | |||
226 | /* USART3 on ttyS4. (Rx, Tx, RTS, CTS) */ | ||
227 | at91_register_uart(AT91SAM9260_ID_US3, 4, | ||
228 | ATMEL_UART_CTS | ||
229 | | ATMEL_UART_RTS); | ||
230 | |||
231 | /* USART4 on ttyS5. (Rx & Tx only) */ | ||
232 | at91_register_uart(AT91SAM9260_ID_US4, 5, 0); | ||
233 | |||
234 | /* USART5 on ttyS6. (Rx & Tx only) */ | ||
235 | at91_register_uart(AT91SAM9260_ID_US5, 6, 0); | ||
236 | |||
237 | /* Set the internal pull-up resistor on DRXD */ | ||
238 | at91_set_A_periph(AT91_PIN_PB14, 1); | ||
244 | at91_add_device_serial(); | 239 | at91_add_device_serial(); |
245 | /* USB Host */ | 240 | /* USB Host */ |
246 | at91_add_device_usbh(&foxg20_usbh_data); | 241 | at91_add_device_usbh(&foxg20_usbh_data); |