Added uart_gpio_conf() in serial_init(), seperated uart port configuration from cpu_init() to uart_gpio_conf()
Signed-off-by: TsiChungLiew <Tsi-Chung.Liew@freescale.com>
diff --git a/drivers/serial/mcfuart.c b/drivers/serial/mcfuart.c
index 39d4e18..bc7077d 100644
--- a/drivers/serial/mcfuart.c
+++ b/drivers/serial/mcfuart.c
@@ -34,6 +34,8 @@
DECLARE_GLOBAL_DATA_PTR;
#ifdef CONFIG_MCFUART
+extern void uart_port_conf(void);
+
int serial_init(void)
{
volatile uart_t *uart;
@@ -41,6 +43,8 @@
uart = (volatile uart_t *)(CFG_UART_BASE);
+ uart_port_conf();
+
/* write to SICR: SIM2 = uart mode,dcd does not affect rx */
uart->ucr = UART_UCR_RESET_RX;
uart->ucr = UART_UCR_RESET_TX;