[U-Boot] [PATCH] exynos: uart: Use generic api to the uart clk freq

Akshay Saraswat akshay.s at samsung.com
Mon Mar 25 10:02:53 CET 2013


From: Padmavathi Venna <padma.v at samsung.com>

Use generic api to get the uart clock frequency

This patch depends on:
http://permalink.gmane.org/gmane.comp.boot-loaders.u-boot/154930

Signed-off-by: Padmavathi Venna <padma.v at samsung.com>
Signed-off-by: Akshay Saraswat <akshay.s at samsung.com>
---
 drivers/serial/serial_s5p.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 3c41242..7058d55 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -65,7 +65,7 @@ static const int udivslot[] = {
 void serial_setbrg_dev(const int dev_index)
 {
 	struct s5p_uart *const uart = s5p_get_base_uart(dev_index);
-	u32 uclk = get_uart_clk(dev_index);
+	u32 uclk = clock_get_periph_rate(PERIPH_ID_UART0 + dev_index);
 	u32 baudrate = gd->baudrate;
 	u32 val;
 
-- 
1.8.0



More information about the U-Boot mailing list