diff options
Diffstat (limited to 'arch/arm/mach-realview')
-rw-r--r-- | arch/arm/mach-realview/clock.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-realview/clock.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-realview/core.c | 4 |
3 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-realview/clock.c b/arch/arm/mach-realview/clock.c index a7043115de72..83646579bc45 100644 --- a/arch/arm/mach-realview/clock.c +++ b/arch/arm/mach-realview/clock.c | |||
@@ -41,7 +41,7 @@ EXPORT_SYMBOL(clk_get_rate); | |||
41 | 41 | ||
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 icst307_vco vco; | 44 | struct icst_vco vco; |
45 | vco = icst307_khz_to_vco(clk->params, rate / 1000); | 45 | vco = icst307_khz_to_vco(clk->params, rate / 1000); |
46 | return icst307_khz(clk->params, vco) * 1000; | 46 | return icst307_khz(clk->params, vco) * 1000; |
47 | } | 47 | } |
@@ -52,7 +52,7 @@ int clk_set_rate(struct clk *clk, unsigned long rate) | |||
52 | int ret = -EIO; | 52 | int ret = -EIO; |
53 | 53 | ||
54 | if (clk->setvco) { | 54 | if (clk->setvco) { |
55 | struct icst307_vco vco; | 55 | struct icst_vco vco; |
56 | 56 | ||
57 | vco = icst307_khz_to_vco(clk->params, rate / 1000); | 57 | vco = icst307_khz_to_vco(clk->params, rate / 1000); |
58 | clk->rate = icst307_khz(clk->params, vco) * 1000; | 58 | clk->rate = icst307_khz(clk->params, vco) * 1000; |
diff --git a/arch/arm/mach-realview/clock.h b/arch/arm/mach-realview/clock.h index ebbb0f06b600..fa64c854258d 100644 --- a/arch/arm/mach-realview/clock.h +++ b/arch/arm/mach-realview/clock.h | |||
@@ -8,12 +8,13 @@ | |||
8 | * it under the terms of the GNU General Public License version 2 as | 8 | * it under the terms of the GNU General Public License version 2 as |
9 | * published by the Free Software Foundation. | 9 | * published by the Free Software Foundation. |
10 | */ | 10 | */ |
11 | #include <asm/hardware/icst.h> | ||
12 | |||
11 | struct module; | 13 | struct module; |
12 | struct icst307_params; | ||
13 | 14 | ||
14 | struct clk { | 15 | struct clk { |
15 | unsigned long rate; | 16 | unsigned long rate; |
16 | const struct icst307_params *params; | 17 | const struct icst_params *params; |
17 | void *data; | 18 | void *data; |
18 | void (*setvco)(struct clk *, struct icst307_vco vco); | 19 | void (*setvco)(struct clk *, struct icst_vco vco); |
19 | }; | 20 | }; |
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index 90bd4ef71b2c..ac504745fed1 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -273,7 +273,7 @@ struct mmci_platform_data realview_mmc1_plat_data = { | |||
273 | /* | 273 | /* |
274 | * Clock handling | 274 | * Clock handling |
275 | */ | 275 | */ |
276 | static const struct icst307_params realview_oscvco_params = { | 276 | static const struct icst_params realview_oscvco_params = { |
277 | .ref = 24000, | 277 | .ref = 24000, |
278 | .vco_max = 200000, | 278 | .vco_max = 200000, |
279 | .vd_min = 4 + 8, | 279 | .vd_min = 4 + 8, |
@@ -282,7 +282,7 @@ static const struct icst307_params realview_oscvco_params = { | |||
282 | .rd_max = 127 + 2, | 282 | .rd_max = 127 + 2, |
283 | }; | 283 | }; |
284 | 284 | ||
285 | static void realview_oscvco_set(struct clk *clk, struct icst307_vco vco) | 285 | static void realview_oscvco_set(struct clk *clk, struct icst_vco vco) |
286 | { | 286 | { |
287 | void __iomem *sys_lock = __io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_LOCK_OFFSET; | 287 | void __iomem *sys_lock = __io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_LOCK_OFFSET; |
288 | void __iomem *sys_osc; | 288 | void __iomem *sys_osc; |