]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/sa1100/serial.c
* Patch by Rick Bronson, 16 Mar 2003:
[karo-tx-uboot.git] / cpu / sa1100 / serial.c
index 68bcd1f2a4061398fdf767172db215c714afdd13..d3b8628245ebebdae3b96fc76bc2cd36ce430a21 100644 (file)
@@ -53,17 +53,19 @@ void serial_setbrg (void)
                hang ();
 
 #ifdef CONFIG_SERIAL1
+       /* SA1110 uart function */
+       Ser1SDCR0 |= SDCR0_SUS;
+
        /* Wait until port is ready ... */
-       while (Ser1UTSR1 & UTSR1_TBY) {
-       }
+       while(Ser1UTSR1 & UTSR1_TBY) {}
 
        /* init serial serial 1 */
        Ser1UTCR3 = 0x00;
        Ser1UTSR0 = 0xff;
-       Ser1UTCR0 = (UTCR0_1StpBit | UTCR0_8BitData);
+       Ser1UTCR0 = ( UTCR0_1StpBit | UTCR0_8BitData );
        Ser1UTCR1 = 0;
-       Ser1UTCR2 = (u32) reg;
-       Ser1UTCR3 = (UTCR3_RXE | UTCR3_TXE);
+       Ser1UTCR2 = (u32)reg;
+       Ser1UTCR3 = ( UTCR3_RXE | UTCR3_TXE );
 #elif CONFIG_SERIAL3
        /* Wait until port is ready ... */
        while (Ser3UTSR1 & UTSR1_TBY) {