
Fix initialization of serial port registers.
Previously, it relied on the bootloader initilizing
it correctly and wouldn't work without it.

Applies to linux-2.4.21-uc0.
Patch submitted by Stefano Fedrigo <aleph@develer.com>

diff -u -3 -p -r1.1.1.8 -r1.5
--- drivers/char/mcfserial.c	25 May 2003 12:23:32 -0000	1.1.1.8
+++ drivers/char/mcfserial.c	29 May 2003 15:58:02 -0000	1.5
@@ -1729,6 +1729,7 @@ static void mcfrs_irqinit(struct mcf_ser
 #if defined(CONFIG_M5272)
 	volatile unsigned long	*icrp;
 	volatile unsigned long	*portp;
+	volatile unsigned short *sportp;
 	volatile unsigned char	*uartp;
 
 	uartp = (volatile unsigned char *) info->addr;
@@ -1749,9 +1750,11 @@ static void mcfrs_irqinit(struct mcf_ser
 
 	/* Enable the output lines for the serial ports */
 	portp = (volatile unsigned long *) (MCF_MBAR + MCFSIM_PBCNT);
-	*portp = (*portp & ~0x000000ff) | 0x00000055;
+	*portp = (*portp & ~0x0000ffff) | 0x00000055;
 	portp = (volatile unsigned long *) (MCF_MBAR + MCFSIM_PDCNT);
 	*portp = (*portp & ~0x000003fc) | 0x000002a8;
+	sportp = (volatile unsigned short *) (MCF_MBAR + MCFSIM_PBDDR);
+	*sportp = (*sportp & ~0x00f0) | 0x0050;
 #elif defined(CONFIG_M5282)
 	volatile unsigned char *icrp, *uartp;
 	volatile unsigned long *imrp;
