aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-versatile
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-01-16 12:28:44 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-05-02 04:35:31 -0400
commit64fceb1dcd1aa6a9f2e53cf8830b38bb007b375b (patch)
treeccf7b5a9fc9bbf65962b6bc7ba0d4adac0206c8e /arch/arm/mach-versatile
parent4de2edbd15ff70c77e1d018611d06f7801fc2b72 (diff)
ARM: ICST: use Hz instead of kHz
This makes the ICST support fit more nicely with the clk API, eliminating the need to *1000 and /1000 in places. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-versatile')
-rw-r--r--arch/arm/mach-versatile/clock.c8
-rw-r--r--arch/arm/mach-versatile/core.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-versatile/clock.c b/arch/arm/mach-versatile/clock.c
index 530e16aa7ad6..82753be453d0 100644
--- a/arch/arm/mach-versatile/clock.c
+++ b/arch/arm/mach-versatile/clock.c
@@ -43,8 +43,8 @@ EXPORT_SYMBOL(clk_get_rate);
43long clk_round_rate(struct clk *clk, unsigned long rate) 43long clk_round_rate(struct clk *clk, unsigned long rate)
44{ 44{
45 struct icst_vco vco; 45 struct icst_vco vco;
46 vco = icst307_khz_to_vco(clk->params, rate / 1000); 46 vco = icst307_hz_to_vco(clk->params, rate);
47 return icst307_khz(clk->params, vco) * 1000; 47 return icst307_hz(clk->params, vco);
48} 48}
49EXPORT_SYMBOL(clk_round_rate); 49EXPORT_SYMBOL(clk_round_rate);
50 50
@@ -55,8 +55,8 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
55 if (clk->setvco) { 55 if (clk->setvco) {
56 struct icst_vco vco; 56 struct icst_vco vco;
57 57
58 vco = icst307_khz_to_vco(clk->params, rate / 1000); 58 vco = icst307_hz_to_vco(clk->params, rate);
59 clk->rate = icst307_khz(clk->params, vco) * 1000; 59 clk->rate = icst307_hz(clk->params, vco);
60 clk->setvco(clk, vco); 60 clk->setvco(clk, vco);
61 ret = 0; 61 ret = 0;
62 } 62 }
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c
index f8ed561ec698..ff5d24f80b29 100644
--- a/arch/arm/mach-versatile/core.c
+++ b/arch/arm/mach-versatile/core.c
@@ -380,7 +380,7 @@ static struct mmci_platform_data mmc0_plat_data = {
380 * Clock handling 380 * Clock handling
381 */ 381 */
382static const struct icst_params versatile_oscvco_params = { 382static const struct icst_params versatile_oscvco_params = {
383 .ref = 24000, 383 .ref = 24000000,
384 .vco_max = ICST307_VCO_MAX, 384 .vco_max = ICST307_VCO_MAX,
385 .vd_min = 4 + 8, 385 .vd_min = 4 + 8,
386 .vd_max = 511 + 8, 386 .vd_max = 511 + 8,