diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-01-16 12:28:44 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-05-02 04:35:31 -0400 |
commit | 64fceb1dcd1aa6a9f2e53cf8830b38bb007b375b (patch) | |
tree | ccf7b5a9fc9bbf65962b6bc7ba0d4adac0206c8e /arch/arm/mach-realview | |
parent | 4de2edbd15ff70c77e1d018611d06f7801fc2b72 (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-realview')
-rw-r--r-- | arch/arm/mach-realview/clock.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-realview/core.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-realview/clock.c b/arch/arm/mach-realview/clock.c index 83646579bc45..2ba0667d18f5 100644 --- a/arch/arm/mach-realview/clock.c +++ b/arch/arm/mach-realview/clock.c | |||
@@ -42,8 +42,8 @@ EXPORT_SYMBOL(clk_get_rate); | |||
42 | long clk_round_rate(struct clk *clk, unsigned long rate) | 42 | long clk_round_rate(struct clk *clk, unsigned long rate) |
43 | { | 43 | { |
44 | struct icst_vco vco; | 44 | struct icst_vco vco; |
45 | vco = icst307_khz_to_vco(clk->params, rate / 1000); | 45 | vco = icst307_hz_to_vco(clk->params, rate); |
46 | return icst307_khz(clk->params, vco) * 1000; | 46 | return icst307_hz(clk->params, vco); |
47 | } | 47 | } |
48 | EXPORT_SYMBOL(clk_round_rate); | 48 | EXPORT_SYMBOL(clk_round_rate); |
49 | 49 | ||
@@ -54,8 +54,8 @@ int clk_set_rate(struct clk *clk, unsigned long rate) | |||
54 | if (clk->setvco) { | 54 | if (clk->setvco) { |
55 | struct icst_vco vco; | 55 | struct icst_vco vco; |
56 | 56 | ||
57 | vco = icst307_khz_to_vco(clk->params, rate / 1000); | 57 | vco = icst307_hz_to_vco(clk->params, rate); |
58 | clk->rate = icst307_khz(clk->params, vco) * 1000; | 58 | clk->rate = icst307_hz(clk->params, vco); |
59 | clk->setvco(clk, vco); | 59 | clk->setvco(clk, vco); |
60 | ret = 0; | 60 | ret = 0; |
61 | } | 61 | } |
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 5a850f0dc36c..02d48371c09b 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -274,7 +274,7 @@ struct mmci_platform_data realview_mmc1_plat_data = { | |||
274 | * Clock handling | 274 | * Clock handling |
275 | */ | 275 | */ |
276 | static const struct icst_params realview_oscvco_params = { | 276 | static const struct icst_params realview_oscvco_params = { |
277 | .ref = 24000, | 277 | .ref = 24000000, |
278 | .vco_max = ICST307_VCO_MAX, | 278 | .vco_max = ICST307_VCO_MAX, |
279 | .vd_min = 4 + 8, | 279 | .vd_min = 4 + 8, |
280 | .vd_max = 511 + 8, | 280 | .vd_max = 511 + 8, |