]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/serial/serial_s5p.c
ARMV7: S5P: serial: support the s5pc210
[karo-tx-uboot.git] / drivers / serial / serial_s5p.c
index 77096643f1f87a01eebab57727926bf5f42eea77..36333c3d49a78d9292c8a82d8c049be679b006cd 100644 (file)
@@ -70,7 +70,11 @@ void serial_setbrg_dev(const int dev_index)
        val = uclk / baudrate;
 
        writel(val / 16 - 1, &uart->ubrdiv);
-       writew(udivslot[val % 16], &uart->udivslot);
+
+       if (use_divslot)
+               writew(udivslot[val % 16], &uart->rest.slot);
+       else
+               writeb(val % 16, &uart->rest.value);
 }
 
 /*