Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
unsigned char res3[2];
unsigned char res4[0x3d0];
};
+
+static int use_divslot = 1;
+
#endif /* __ASSEMBLY__ */
#endif
unsigned char res3[2];
unsigned char res4[0x3d0];
};
+
+static int use_divslot = 1;
+
#endif /* __ASSEMBLY__ */
#endif
unsigned char res4[3];
unsigned char res5[0xffd0];
};
+
+static int use_divslot = 0;
+
#endif /* __ASSEMBLY__ */
#endif
val = uclk / baudrate;
writel(val / 16 - 1, &uart->ubrdiv);
-#ifdef CONFIG_S5PC210
- if (cpu_is_s5pc210())
- writew(val & 15, &uart->udivslot);
- else
-#endif
+
+ if (use_divslot)
writew(udivslot[val % 16], &uart->udivslot);
+ else
+ writew(val & 16, &uart->udivslot); /* ufracval */
}
/*