summaryrefslogtreecommitdiff
path: root/cpu/mpc8220/uart.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2005-04-05 21:57:18 +0000
committerwdenk <wdenk>2005-04-05 21:57:18 +0000
commit12b43d515c62682fcf7b578f31920a2be49142fe (patch)
tree1bfefb96f221647486f80b4fc91b3a7e3660beca /cpu/mpc8220/uart.c
parentf5c5ef4a1fa7dcf90fd74f795a131d07377406ab (diff)
downloadu-boot-imx-12b43d515c62682fcf7b578f31920a2be49142fe.zip
u-boot-imx-12b43d515c62682fcf7b578f31920a2be49142fe.tar.gz
u-boot-imx-12b43d515c62682fcf7b578f31920a2be49142fe.tar.bz2
Add support for MPC8220 based "sorcery" board.
Diffstat (limited to 'cpu/mpc8220/uart.c')
-rw-r--r--cpu/mpc8220/uart.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpu/mpc8220/uart.c b/cpu/mpc8220/uart.c
index fcf947d..4ff8ccb 100644
--- a/cpu/mpc8220/uart.c
+++ b/cpu/mpc8220/uart.c
@@ -47,8 +47,7 @@ int psc_serial_init (void)
/* write to CSR: RX/TX baud rate from timers */
psc->sr_csr = 0xdd000000;
- psc->mr1_2 = PSC_MR1_BITS_CHAR_8 | PSC_MR1_NO_PARITY | PSC_MR1_RX_RTS;
- psc->mr1_2 = PSC_MR2_STOP_BITS_1 | PSC_MR2_TX_CTS;
+ psc->mr1_2 = PSC_MR1_BITS_CHAR_8 | PSC_MR1_NO_PARITY | PSC_MR2_STOP_BITS_1;
/* Setting up BaudRate */
counter = ((gd->bus_clk / gd->baudrate)) >> 5;
@@ -77,7 +76,7 @@ void psc_serial_putc (const char c)
serial_putc ('\r');
/* Wait for last character to go. */
- while (!(psc->sr_csr & PSC_SR_TXEMT));
+ while (!(psc->sr_csr & PSC_SR_TXRDY));
psc->xmitbuf[0] = c;
}