summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorTsiChungLiew <Tsi-Chung.Liew@freescale.com>2007-08-05 03:55:21 -0500
committerStefan Roese <sr@denx.de>2007-08-08 09:47:25 +0200
commit8d1d66af54d305de29d0bbf4aa8c9e6375f7f731 (patch)
tree1202f2b25ce8b39aea7b49adb56f87791b4f35c4 /drivers/serial
parent6fde84a44b7e575ea80fe0e2d5be3b6f73d1e630 (diff)
downloadu-boot-imx-8d1d66af54d305de29d0bbf4aa8c9e6375f7f731.zip
u-boot-imx-8d1d66af54d305de29d0bbf4aa8c9e6375f7f731.tar.gz
u-boot-imx-8d1d66af54d305de29d0bbf4aa8c9e6375f7f731.tar.bz2
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>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/mcfuart.c4
1 files changed, 4 insertions, 0 deletions
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 @@ 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;