aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMinkyu Kang <mk7.kang@samsung.com>2010-08-24 15:51:55 +0900
committerMinkyu Kang <mk7.kang@samsung.com>2010-08-30 14:44:16 +0900
commitf70409aff3a10e22ff9c66f87e9cbc3de7cbd7f7 (patch)
treec8b7d4b4127f3d908b403d230940a9c122ed44e8 /drivers
parent545dabbeef56ffea33cedee56067edacd9fb90f0 (diff)
downloadu-boot-f70409aff3a10e22ff9c66f87e9cbc3de7cbd7f7.zip
u-boot-f70409aff3a10e22ff9c66f87e9cbc3de7cbd7f7.tar.gz
u-boot-f70409aff3a10e22ff9c66f87e9cbc3de7cbd7f7.tar.bz2
ARMV7: S5P: separate the peripheral clocks
Because of peripheral devices can select clock sources, separate the peripheral clocks. (pwm, uart and so on) It just return the pclk at s5pc1xx SoC, but s5pc210 SoC must be calculated by own clock register setting. Signed-off-by: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/serial_s5p.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 6a61b4f..7709664 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -63,11 +63,11 @@ void serial_setbrg_dev(const int dev_index)
{
DECLARE_GLOBAL_DATA_PTR;
struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
- u32 pclk = get_pclk();
+ u32 uclk = get_uart_clk(dev_index);
u32 baudrate = gd->baudrate;
u32 val;
- val = pclk / baudrate;
+ val = uclk / baudrate;
writel(val / 16 - 1, &uart->ubrdiv);
writew(udivslot[val % 16], &uart->udivslot);