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-eco920.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-eco920.c')
-rw-r--r-- | arch/arm/mach-at91/board-eco920.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/board-eco920.c b/arch/arm/mach-at91/board-eco920.c index 7df6a9b1405e..bebeae875bd3 100644 --- a/arch/arm/mach-at91/board-eco920.c +++ b/arch/arm/mach-at91/board-eco920.c | |||
@@ -40,9 +40,6 @@ static void __init eco920_init_early(void) | |||
40 | 40 | ||
41 | /* Setup the LEDs */ | 41 | /* Setup the LEDs */ |
42 | at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1); | 42 | at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1); |
43 | |||
44 | /* DBGU on ttyS0. (Rx & Tx only */ | ||
45 | at91_register_uart(0, 0, 0); | ||
46 | } | 43 | } |
47 | 44 | ||
48 | static struct macb_platform_data __initdata eco920_eth_data = { | 45 | static struct macb_platform_data __initdata eco920_eth_data = { |
@@ -100,6 +97,8 @@ static struct spi_board_info eco920_spi_devices[] = { | |||
100 | 97 | ||
101 | static void __init eco920_board_init(void) | 98 | static void __init eco920_board_init(void) |
102 | { | 99 | { |
100 | /* DBGU on ttyS0. (Rx & Tx only */ | ||
101 | at91_register_uart(0, 0, 0); | ||
103 | at91_add_device_serial(); | 102 | at91_add_device_serial(); |
104 | at91_add_device_eth(&eco920_eth_data); | 103 | at91_add_device_eth(&eco920_eth_data); |
105 | at91_add_device_usbh(&eco920_usbh_data); | 104 | at91_add_device_usbh(&eco920_usbh_data); |