*/
#include <common.h>
+
+#ifdef CONFIG_MCFUART
+
#include <asm/immap.h>
#include <asm/uart.h>
DECLARE_GLOBAL_DATA_PTR;
-#ifdef CONFIG_MCFSERIAL
+extern void uart_port_conf(void);
+
int serial_init(void)
{
volatile uart_t *uart;
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;
uart->ucr = UART_UCR_RX_ENABLED | UART_UCR_TX_ENABLED;
}
-#endif /* CONFIG_MCFSERIAL */
+#endif /* CONFIG_MCFUART */