Commit 9ed0a00e authored by Tony Lindgren's avatar Tony Lindgren

ARM: OMAP: Move omap_serial_init() to happen after board specific map_io()

Move omap_serial_init() to happen after board specific map_io().
Patch based on Kyungmin Park's suggestion.
parent 5c970d60
...@@ -183,12 +183,12 @@ static void __init h2_init(void) ...@@ -183,12 +183,12 @@ static void __init h2_init(void)
platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices));
omap_board_config = h2_config; omap_board_config = h2_config;
omap_board_config_size = ARRAY_SIZE(h2_config); omap_board_config_size = ARRAY_SIZE(h2_config);
omap_serial_init();
} }
static void __init h2_map_io(void) static void __init h2_map_io(void)
{ {
omap_map_common_io(); omap_map_common_io();
omap_serial_init();
} }
MACHINE_START(OMAP_H2, "TI-H2") MACHINE_START(OMAP_H2, "TI-H2")
......
...@@ -183,6 +183,7 @@ static void __init h3_init(void) ...@@ -183,6 +183,7 @@ static void __init h3_init(void)
(void) platform_add_devices(devices, ARRAY_SIZE(devices)); (void) platform_add_devices(devices, ARRAY_SIZE(devices));
omap_board_config = h3_config; omap_board_config = h3_config;
omap_board_config_size = ARRAY_SIZE(h3_config); omap_board_config_size = ARRAY_SIZE(h3_config);
omap_serial_init();
} }
static void __init h3_init_smc91x(void) static void __init h3_init_smc91x(void)
...@@ -204,7 +205,6 @@ void h3_init_irq(void) ...@@ -204,7 +205,6 @@ void h3_init_irq(void)
static void __init h3_map_io(void) static void __init h3_map_io(void)
{ {
omap_map_common_io(); omap_map_common_io();
omap_serial_init();
} }
MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board") MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board")
......
...@@ -261,6 +261,7 @@ static void __init innovator_init(void) ...@@ -261,6 +261,7 @@ static void __init innovator_init(void)
#endif #endif
omap_board_config = innovator_config; omap_board_config = innovator_config;
omap_board_config_size = ARRAY_SIZE(innovator_config); omap_board_config_size = ARRAY_SIZE(innovator_config);
omap_serial_init();
} }
static void __init innovator_map_io(void) static void __init innovator_map_io(void)
...@@ -279,7 +280,6 @@ static void __init innovator_map_io(void) ...@@ -279,7 +280,6 @@ static void __init innovator_map_io(void)
fpga_read(OMAP1510_FPGA_BOARD_REV)); fpga_read(OMAP1510_FPGA_BOARD_REV));
} }
#endif #endif
omap_serial_init();
} }
MACHINE_START(OMAP_INNOVATOR, "TI-Innovator") MACHINE_START(OMAP_INNOVATOR, "TI-Innovator")
......
...@@ -103,12 +103,12 @@ static void __init netstar_init(void) ...@@ -103,12 +103,12 @@ static void __init netstar_init(void)
omap_board_config = netstar_config; omap_board_config = netstar_config;
omap_board_config_size = ARRAY_SIZE(netstar_config); omap_board_config_size = ARRAY_SIZE(netstar_config);
omap_serial_init();
} }
static void __init netstar_map_io(void) static void __init netstar_map_io(void)
{ {
omap_map_common_io(); omap_map_common_io();
omap_serial_init();
} }
#define MACHINE_PANICED 1 #define MACHINE_PANICED 1
......
...@@ -257,13 +257,13 @@ static void __init osk_init(void) ...@@ -257,13 +257,13 @@ static void __init osk_init(void)
omap_board_config_size = ARRAY_SIZE(osk_config); omap_board_config_size = ARRAY_SIZE(osk_config);
USB_TRANSCEIVER_CTRL_REG |= (3 << 1); USB_TRANSCEIVER_CTRL_REG |= (3 << 1);
omap_serial_init();
osk_mistral_init(); osk_mistral_init();
} }
static void __init osk_map_io(void) static void __init osk_map_io(void)
{ {
omap_map_common_io(); omap_map_common_io();
omap_serial_init();
} }
MACHINE_START(OMAP_OSK, "TI-OSK") MACHINE_START(OMAP_OSK, "TI-OSK")
......
...@@ -124,6 +124,7 @@ static void __init omap_perseus2_init(void) ...@@ -124,6 +124,7 @@ static void __init omap_perseus2_init(void)
omap_board_config = perseus2_config; omap_board_config = perseus2_config;
omap_board_config_size = ARRAY_SIZE(perseus2_config); omap_board_config_size = ARRAY_SIZE(perseus2_config);
omap_serial_init();
} }
static void __init perseus2_init_smc91x(void) static void __init perseus2_init_smc91x(void)
...@@ -184,7 +185,6 @@ static void __init omap_perseus2_map_io(void) ...@@ -184,7 +185,6 @@ static void __init omap_perseus2_map_io(void)
* It is used as the Ethernet controller interrupt * It is used as the Ethernet controller interrupt
*/ */
omap_writel(omap_readl(OMAP730_IO_CONF_9) & 0x1FFFFFFF, OMAP730_IO_CONF_9); omap_writel(omap_readl(OMAP730_IO_CONF_9) & 0x1FFFFFFF, OMAP730_IO_CONF_9);
omap_serial_init();
} }
MACHINE_START(OMAP_PERSEUS2, "OMAP730 Perseus2") MACHINE_START(OMAP_PERSEUS2, "OMAP730 Perseus2")
......
...@@ -196,6 +196,7 @@ static void __init voiceblue_init(void) ...@@ -196,6 +196,7 @@ static void __init voiceblue_init(void)
platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices)); platform_add_devices(voiceblue_devices, ARRAY_SIZE(voiceblue_devices));
omap_board_config = voiceblue_config; omap_board_config = voiceblue_config;
omap_board_config_size = ARRAY_SIZE(voiceblue_config); omap_board_config_size = ARRAY_SIZE(voiceblue_config);
omap_serial_init();
/* There is a good chance board is going up, so enable power LED /* There is a good chance board is going up, so enable power LED
* (it is connected through invertor) */ * (it is connected through invertor) */
...@@ -206,7 +207,6 @@ static void __init voiceblue_init(void) ...@@ -206,7 +207,6 @@ static void __init voiceblue_init(void)
static void __init voiceblue_map_io(void) static void __init voiceblue_map_io(void)
{ {
omap_map_common_io(); omap_map_common_io();
omap_serial_init();
} }
#define MACHINE_PANICED 1 #define MACHINE_PANICED 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment