]> git.sur5r.net Git - u-boot/blobdiff - cpu/mips/au1x00_serial.c
mips: Fix baudrate divisor computation on alchemy cpus
[u-boot] / cpu / mips / au1x00_serial.c
index 63097940acc81db2e759614fc0cf42c324392328..e8baab5b1f53f1529ef0584e6b368e928fd1cdf9 100644 (file)
@@ -76,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 = ((CFG_MIPS_TIMER_FREQ/(sd * 16 * CONFIG_BAUDRATE)));
 
        if (divisorx2 & 0x01)
                divisorx2 = divisorx2 + 1;