]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - cpu/mips/au1x00_serial.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / cpu / mips / au1x00_serial.c
index 42c668ee3d373a54e5609b3104742d8aa2e9b9f2..c25ba5a5b3fc01130998fb652670094051aee72a 100644 (file)
@@ -26,9 +26,6 @@
  */
 
 #include <config.h>
-
-#ifdef CONFIG_AU1X00
-
 #include <common.h>
 #include <asm/au1x00.h>
 
@@ -79,7 +76,7 @@ void serial_setbrg (void)
        sd = (*sys_powerctrl & 0x03) + 2;
 
        /* calulate 2x baudrate and round */
-       divisorx2 = ((CFG_HZ/(sd * 16 * CONFIG_BAUDRATE)));
+       divisorx2 = ((CONFIG_SYS_MIPS_TIMER_FREQ/(sd * 16 * CONFIG_BAUDRATE)));
 
        if (divisorx2 & 0x01)
                divisorx2 = divisorx2 + 1;
@@ -132,4 +129,3 @@ int serial_tstc (void)
        }
        return 0;
 }
-#endif /* CONFIG_SERIAL_AU1X00 */