diff options
author | Andrew Lunn <andrew@lunn.ch> | 2011-12-23 21:06:34 -0500 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-05-08 19:33:57 -0400 |
commit | 74c335761acdfd94736d28ba0b941a2efb9c81f0 (patch) | |
tree | 48a1011670391a6dfd8b2b1fac33a4f0221fe0d2 /arch/arm/mach-dove/common.c | |
parent | 4f04be62af95119d258b8035f498100e43c8c527 (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-dove/common.c')
-rw-r--r-- | arch/arm/mach-dove/common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index 02766960480..0ab0f81b661 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c | |||
@@ -128,7 +128,7 @@ void __init dove_sata_init(struct mv_sata_platform_data *sata_data) | |||
128 | void __init dove_uart0_init(void) | 128 | void __init dove_uart0_init(void) |
129 | { | 129 | { |
130 | orion_uart0_init(DOVE_UART0_VIRT_BASE, DOVE_UART0_PHYS_BASE, | 130 | orion_uart0_init(DOVE_UART0_VIRT_BASE, DOVE_UART0_PHYS_BASE, |
131 | IRQ_DOVE_UART_0, get_tclk()); | 131 | IRQ_DOVE_UART_0, tclk); |
132 | } | 132 | } |
133 | 133 | ||
134 | /***************************************************************************** | 134 | /***************************************************************************** |
@@ -137,7 +137,7 @@ void __init dove_uart0_init(void) | |||
137 | void __init dove_uart1_init(void) | 137 | void __init dove_uart1_init(void) |
138 | { | 138 | { |
139 | orion_uart1_init(DOVE_UART1_VIRT_BASE, DOVE_UART1_PHYS_BASE, | 139 | orion_uart1_init(DOVE_UART1_VIRT_BASE, DOVE_UART1_PHYS_BASE, |
140 | IRQ_DOVE_UART_1, get_tclk()); | 140 | IRQ_DOVE_UART_1, tclk); |
141 | } | 141 | } |
142 | 142 | ||
143 | /***************************************************************************** | 143 | /***************************************************************************** |
@@ -146,7 +146,7 @@ void __init dove_uart1_init(void) | |||
146 | void __init dove_uart2_init(void) | 146 | void __init dove_uart2_init(void) |
147 | { | 147 | { |
148 | orion_uart2_init(DOVE_UART2_VIRT_BASE, DOVE_UART2_PHYS_BASE, | 148 | orion_uart2_init(DOVE_UART2_VIRT_BASE, DOVE_UART2_PHYS_BASE, |
149 | IRQ_DOVE_UART_2, get_tclk()); | 149 | IRQ_DOVE_UART_2, tclk); |
150 | } | 150 | } |
151 | 151 | ||
152 | /***************************************************************************** | 152 | /***************************************************************************** |
@@ -155,7 +155,7 @@ void __init dove_uart2_init(void) | |||
155 | void __init dove_uart3_init(void) | 155 | void __init dove_uart3_init(void) |
156 | { | 156 | { |
157 | orion_uart3_init(DOVE_UART3_VIRT_BASE, DOVE_UART3_PHYS_BASE, | 157 | orion_uart3_init(DOVE_UART3_VIRT_BASE, DOVE_UART3_PHYS_BASE, |
158 | IRQ_DOVE_UART_3, get_tclk()); | 158 | IRQ_DOVE_UART_3, tclk); |
159 | } | 159 | } |
160 | 160 | ||
161 | /***************************************************************************** | 161 | /***************************************************************************** |