aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/common.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2011-12-23 21:06:34 -0500
committerMike Turquette <mturquette@linaro.org>2012-05-08 19:33:57 -0400
commit74c335761acdfd94736d28ba0b941a2efb9c81f0 (patch)
tree48a1011670391a6dfd8b2b1fac33a4f0221fe0d2 /arch/arm/mach-kirkwood/common.c
parent4f04be62af95119d258b8035f498100e43c8c527 (diff)
ARM: Orion: UART: Get the clock rate via clk_get_rate().
Let the machine pass to the platform which clock is used by the uart. Enable the clock and use clk_get_rate() to determine its rate. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Jamie Lentin <jm@lentin.co.uk> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'arch/arm/mach-kirkwood/common.c')
-rw-r--r--arch/arm/mach-kirkwood/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index 880f3667a2eb..46d7b4374908 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -299,7 +299,7 @@ void __init kirkwood_i2c_init(void)
299void __init kirkwood_uart0_init(void) 299void __init kirkwood_uart0_init(void)
300{ 300{
301 orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE, 301 orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE,
302 IRQ_KIRKWOOD_UART_0, kirkwood_tclk); 302 IRQ_KIRKWOOD_UART_0, tclk);
303} 303}
304 304
305 305
@@ -309,7 +309,7 @@ void __init kirkwood_uart0_init(void)
309void __init kirkwood_uart1_init(void) 309void __init kirkwood_uart1_init(void)
310{ 310{
311 orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE, 311 orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE,
312 IRQ_KIRKWOOD_UART_1, kirkwood_tclk); 312 IRQ_KIRKWOOD_UART_1, tclk);
313} 313}
314 314
315/***************************************************************************** 315/*****************************************************************************