diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-04-05 02:14:28 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-04-17 05:04:42 -0400 |
commit | 71b149b3f740501c2d59c80de5b10f5e45051099 (patch) | |
tree | 101450eaa5658b89d9d85e67fa1d7f56557457ab /arch/arm/mach-at91/board-pcontrol-g20.c | |
parent | a27fa58117ae1161adefedde449e5a71b3c593a4 (diff) |
ARM: at91: do not pin mux the UARTs in init_early
There is no need to pinmux the UART so early in the kernel.
Move it to the board init.
This will also allow to finally move the gpio driver to platform device/driver.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/board-pcontrol-g20.c')
-rw-r--r-- | arch/arm/mach-at91/board-pcontrol-g20.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/arch/arm/mach-at91/board-pcontrol-g20.c b/arch/arm/mach-at91/board-pcontrol-g20.c index b4a12fc184c8..7fe638342421 100644 --- a/arch/arm/mach-at91/board-pcontrol-g20.c +++ b/arch/arm/mach-at91/board-pcontrol-g20.c | |||
@@ -40,17 +40,6 @@ | |||
40 | static void __init pcontrol_g20_init_early(void) | 40 | static void __init pcontrol_g20_init_early(void) |
41 | { | 41 | { |
42 | stamp9g20_init_early(); | 42 | stamp9g20_init_early(); |
43 | |||
44 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS) piggyback A2 */ | ||
45 | at91_register_uart(AT91SAM9260_ID_US0, 1, ATMEL_UART_CTS | ||
46 | | ATMEL_UART_RTS); | ||
47 | |||
48 | /* USART1 on ttyS2. (Rx, Tx, CTS, RTS) isolated RS485 X5 */ | ||
49 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ||
50 | | ATMEL_UART_RTS); | ||
51 | |||
52 | /* USART2 on ttyS3. (Rx, Tx) 9bit-Bus Multidrop-mode X4 */ | ||
53 | at91_register_uart(AT91SAM9260_ID_US4, 3, 0); | ||
54 | } | 43 | } |
55 | 44 | ||
56 | static struct sam9_smc_config __initdata pcontrol_smc_config[2] = { { | 45 | static struct sam9_smc_config __initdata pcontrol_smc_config[2] = { { |
@@ -199,6 +188,16 @@ static struct spi_board_info pcontrol_g20_spi_devices[] = { | |||
199 | 188 | ||
200 | static void __init pcontrol_g20_board_init(void) | 189 | static void __init pcontrol_g20_board_init(void) |
201 | { | 190 | { |
191 | /* USART0 on ttyS1. (Rx, Tx, CTS, RTS) piggyback A2 */ | ||
192 | at91_register_uart(AT91SAM9260_ID_US0, 1, ATMEL_UART_CTS | ||
193 | | ATMEL_UART_RTS); | ||
194 | |||
195 | /* USART1 on ttyS2. (Rx, Tx, CTS, RTS) isolated RS485 X5 */ | ||
196 | at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ||
197 | | ATMEL_UART_RTS); | ||
198 | |||
199 | /* USART2 on ttyS3. (Rx, Tx) 9bit-Bus Multidrop-mode X4 */ | ||
200 | at91_register_uart(AT91SAM9260_ID_US4, 3, 0); | ||
202 | stamp9g20_board_init(); | 201 | stamp9g20_board_init(); |
203 | at91_add_device_usbh(&usbh_data); | 202 | at91_add_device_usbh(&usbh_data); |
204 | at91_add_device_eth(&macb_data); | 203 | at91_add_device_eth(&macb_data); |