Hi Wilson,

Wilson Callan wrote:
Attached is a patch to enable the GPIO on the 523x so that all 3 UARTS can be used. the rest of the driver enables the ports to work, but the GPIO configuration is missing.

The change in mcfserial.c:

@@ -1535,6 +1537,9 @@
        imrp = (volatile unsigned long *) (MCF_MBAR + MCFICM_INTC0 +
                MCFINTC_IMRL);
        *imrp &= ~((1 << (info->irq - MCFINT_VECBASE)) | 1);
+
+ par_uartp = (volatile unsigned short *) (MCF_MBAR + MCF523x_GPIO_PAR_UART);
+       *par_uartp = 0x3FFF; // setup GPIO for UART0, UART1 & UART2
 #if defined(CONFIG_M527x)
        {
                /*

Needs to have "#ifdef CONFIG_M523x" around it.

And one style issue. Comments in the kernel should not be
c89/c++ style, don't use "//". See linux-2.6.x/Documentation/CodingStyle.

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to