Merge ../u-boot
[oweals/u-boot.git] / drivers / serial / mcfuart.c
index 39d4e18166bbf6574947d43f5953920b6b499204..88f3eb10abf8f3b4b67d5459b503cb3b6f8e7830 100644 (file)
  */
 
 #include <common.h>
+
+#ifdef CONFIG_MCFUART
+
 #include <asm/immap.h>
 #include <asm/uart.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CONFIG_MCFUART
+extern void uart_port_conf(void);
+
 int serial_init(void)
 {
        volatile uart_t *uart;
@@ -41,6 +45,8 @@ int serial_init(void)
 
        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;