summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2010-09-28 14:35:02 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2010-10-19 11:35:29 +0900
commit1628cfc4fe4b2c3caa7e9d5622f0665c54e8ba6e (patch)
treeab110be7f4e8e532e1b44f878b7a59c6aaaa9750 /drivers/serial
parent1727e216987a2d4e3e220f8c09e4bb54a611d21e (diff)
ARMV7: S5P: serial: support the s5pc210
This patch is for s5pc210 support. Due to the resigter of baudrate is changed from slot to value, add both of them to uart structure. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_s5p.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 77096643f1..36333c3d49 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -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);
}
/*