aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/Kconfig6
-rw-r--r--arch/arm/common/Kconfig5
-rw-r--r--arch/arm/common/Makefile3
-rw-r--r--arch/arm/common/icst.c (renamed from arch/arm/common/icst307.c)19
-rw-r--r--arch/arm/common/icst525.c99
-rw-r--r--arch/arm/include/asm/hardware/icst.h24
-rw-r--r--arch/arm/include/asm/hardware/icst307.h34
-rw-r--r--arch/arm/include/asm/hardware/icst525.h33
-rw-r--r--arch/arm/mach-integrator/clock.c10
-rw-r--r--arch/arm/mach-integrator/cpu.c20
-rw-r--r--arch/arm/mach-integrator/impd1.c2
-rw-r--r--arch/arm/mach-integrator/integrator_cp.c2
-rw-r--r--arch/arm/mach-realview/clock.c10
-rw-r--r--arch/arm/mach-realview/core.c2
-rw-r--r--arch/arm/mach-realview/realview_eb.c1
-rw-r--r--arch/arm/mach-realview/realview_pb1176.c1
-rw-r--r--arch/arm/mach-realview/realview_pb11mp.c1
-rw-r--r--arch/arm/mach-realview/realview_pba8.c1
-rw-r--r--arch/arm/mach-versatile/clock.c10
-rw-r--r--arch/arm/mach-versatile/core.c2
20 files changed, 67 insertions, 218 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 86fecec1600d..3c436fdbe2a0 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -240,7 +240,7 @@ config ARCH_INTEGRATOR
240 select ARCH_HAS_CPUFREQ 240 select ARCH_HAS_CPUFREQ
241 select HAVE_CLK 241 select HAVE_CLK
242 select COMMON_CLKDEV 242 select COMMON_CLKDEV
243 select ICST525 243 select ICST
244 select GENERIC_TIME 244 select GENERIC_TIME
245 select GENERIC_CLOCKEVENTS 245 select GENERIC_CLOCKEVENTS
246 help 246 help
@@ -251,7 +251,7 @@ config ARCH_REALVIEW
251 select ARM_AMBA 251 select ARM_AMBA
252 select HAVE_CLK 252 select HAVE_CLK
253 select COMMON_CLKDEV 253 select COMMON_CLKDEV
254 select ICST307 254 select ICST
255 select GENERIC_TIME 255 select GENERIC_TIME
256 select GENERIC_CLOCKEVENTS 256 select GENERIC_CLOCKEVENTS
257 select ARCH_WANT_OPTIONAL_GPIOLIB 257 select ARCH_WANT_OPTIONAL_GPIOLIB
@@ -264,7 +264,7 @@ config ARCH_VERSATILE
264 select ARM_VIC 264 select ARM_VIC
265 select HAVE_CLK 265 select HAVE_CLK
266 select COMMON_CLKDEV 266 select COMMON_CLKDEV
267 select ICST307 267 select ICST
268 select GENERIC_TIME 268 select GENERIC_TIME
269 select GENERIC_CLOCKEVENTS 269 select GENERIC_CLOCKEVENTS
270 select ARCH_WANT_OPTIONAL_GPIOLIB 270 select ARCH_WANT_OPTIONAL_GPIOLIB
diff --git a/arch/arm/common/Kconfig b/arch/arm/common/Kconfig
index 4efbb9df0444..323d2d289523 100644
--- a/arch/arm/common/Kconfig
+++ b/arch/arm/common/Kconfig
@@ -12,10 +12,7 @@ config ARM_VIC_NR
12 The maximum number of VICs available in the system, for 12 The maximum number of VICs available in the system, for
13 power management. 13 power management.
14 14
15config ICST525 15config ICST
16 bool
17
18config ICST307
19 bool 16 bool
20 17
21config SA1111 18config SA1111
diff --git a/arch/arm/common/Makefile b/arch/arm/common/Makefile
index 76be7ff2a7ca..5e8ad0d6c917 100644
--- a/arch/arm/common/Makefile
+++ b/arch/arm/common/Makefile
@@ -4,8 +4,7 @@
4 4
5obj-$(CONFIG_ARM_GIC) += gic.o 5obj-$(CONFIG_ARM_GIC) += gic.o
6obj-$(CONFIG_ARM_VIC) += vic.o 6obj-$(CONFIG_ARM_VIC) += vic.o
7obj-$(CONFIG_ICST525) += icst525.o 7obj-$(CONFIG_ICST) += icst.o
8obj-$(CONFIG_ICST307) += icst307.o
9obj-$(CONFIG_SA1111) += sa1111.o 8obj-$(CONFIG_SA1111) += sa1111.o
10obj-$(CONFIG_PCI_HOST_VIA82C505) += via82c505.o 9obj-$(CONFIG_PCI_HOST_VIA82C505) += via82c505.o
11obj-$(CONFIG_DMABOUNCE) += dmabounce.o 10obj-$(CONFIG_DMABOUNCE) += dmabounce.o
diff --git a/arch/arm/common/icst307.c b/arch/arm/common/icst.c
index 8332c0726e73..9a7f09cff300 100644
--- a/arch/arm/common/icst307.c
+++ b/arch/arm/common/icst.c
@@ -17,31 +17,33 @@
17#include <linux/module.h> 17#include <linux/module.h>
18#include <linux/kernel.h> 18#include <linux/kernel.h>
19 19
20#include <asm/hardware/icst307.h> 20#include <asm/hardware/icst.h>
21 21
22/* 22/*
23 * Divisors for each OD setting. 23 * Divisors for each OD setting.
24 */ 24 */
25const unsigned char icst307_s2div[8] = { 10, 2, 8, 4, 5, 7, 3, 6 }; 25const unsigned char icst307_s2div[8] = { 10, 2, 8, 4, 5, 7, 3, 6 };
26 26const unsigned char icst525_s2div[8] = { 10, 2, 8, 4, 5, 7, 9, 6 };
27EXPORT_SYMBOL(icst307_s2div); 27EXPORT_SYMBOL(icst307_s2div);
28EXPORT_SYMBOL(icst525_s2div);
28 29
29unsigned long icst307_hz(const struct icst_params *p, struct icst_vco vco) 30unsigned long icst_hz(const struct icst_params *p, struct icst_vco vco)
30{ 31{
31 return p->ref * 2 * (vco.v + 8) / ((vco.r + 2) * p->s2div[vco.s]); 32 return p->ref * 2 * (vco.v + 8) / ((vco.r + 2) * p->s2div[vco.s]);
32} 33}
33 34
34EXPORT_SYMBOL(icst307_hz); 35EXPORT_SYMBOL(icst_hz);
35 36
36/* 37/*
37 * Ascending divisor S values. 38 * Ascending divisor S values.
38 */ 39 */
39const unsigned char icst307_idx2s[8] = { 1, 6, 3, 4, 7, 5, 2, 0 }; 40const unsigned char icst307_idx2s[8] = { 1, 6, 3, 4, 7, 5, 2, 0 };
40 41const unsigned char icst525_idx2s[8] = { 1, 3, 4, 7, 5, 2, 6, 0 };
41EXPORT_SYMBOL(icst307_idx2s); 42EXPORT_SYMBOL(icst307_idx2s);
43EXPORT_SYMBOL(icst525_idx2s);
42 44
43struct icst_vco 45struct icst_vco
44icst307_hz_to_vco(const struct icst_params *p, unsigned long freq) 46icst_hz_to_vco(const struct icst_params *p, unsigned long freq)
45{ 47{
46 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max }; 48 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
47 unsigned long f; 49 unsigned long f;
@@ -54,9 +56,6 @@ icst307_hz_to_vco(const struct icst_params *p, unsigned long freq)
54 do { 56 do {
55 f = freq * p->s2div[p->idx2s[i]]; 57 f = freq * p->s2div[p->idx2s[i]];
56 58
57 /*
58 * f must be between 6MHz and 200MHz (3.3 or 5V)
59 */
60 if (f > p->vco_min && f <= p->vco_max) 59 if (f > p->vco_min && f <= p->vco_max)
61 break; 60 break;
62 } while (i < 8); 61 } while (i < 8);
@@ -98,4 +97,4 @@ icst307_hz_to_vco(const struct icst_params *p, unsigned long freq)
98 return vco; 97 return vco;
99} 98}
100 99
101EXPORT_SYMBOL(icst307_hz_to_vco); 100EXPORT_SYMBOL(icst_hz_to_vco);
diff --git a/arch/arm/common/icst525.c b/arch/arm/common/icst525.c
deleted file mode 100644
index 4180255eb078..000000000000
--- a/arch/arm/common/icst525.c
+++ /dev/null
@@ -1,99 +0,0 @@
1/*
2 * linux/arch/arm/common/icst525.c
3 *
4 * Copyright (C) 2003 Deep Blue Solutions, Ltd, All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Support functions for calculating clocks/divisors for the ICST525
11 * clock generators. See http://www.icst.com/ for more information
12 * on these devices.
13 */
14#include <linux/module.h>
15#include <linux/kernel.h>
16
17#include <asm/hardware/icst525.h>
18
19/*
20 * Divisors for each OD setting.
21 */
22const unsigned char icst525_s2div[8] = { 10, 2, 8, 4, 5, 7, 9, 6 };
23
24EXPORT_SYMBOL(icst525_s2div);
25
26unsigned long icst525_hz(const struct icst_params *p, struct icst_vco vco)
27{
28 return p->ref * 2 * (vco.v + 8) / ((vco.r + 2) * p->s2div[vco.s]);
29}
30
31EXPORT_SYMBOL(icst525_hz);
32
33/*
34 * Ascending divisor S values.
35 */
36const unsigned char icst525_idx2s[8] = { 1, 3, 4, 7, 5, 2, 6, 0 };
37
38EXPORT_SYMBOL(icst525_idx2s);
39
40struct icst_vco
41icst525_hz_to_vco(const struct icst_params *p, unsigned long freq)
42{
43 struct icst_vco vco = { .s = 1, .v = p->vd_max, .r = p->rd_max };
44 unsigned long f;
45 unsigned int i = 0, rd, best = (unsigned int)-1;
46
47 /*
48 * First, find the PLL output divisor such
49 * that the PLL output is within spec.
50 */
51 do {
52 f = freq * p->s2div[p->idx2s[i]];
53
54 /*
55 * f must be between 10MHz and
56 * 320MHz (5V) or 200MHz (3V)
57 */
58 if (f > p->vco_min && f <= p->vco_max)
59 break;
60 } while (i < 8);
61
62 if (i >= 8)
63 return vco;
64
65 vco.s = p->idx2s[i];
66
67 /*
68 * Now find the closest divisor combination
69 * which gives a PLL output of 'f'.
70 */
71 for (rd = p->rd_min; rd <= p->rd_max; rd++) {
72 unsigned long fref_div, f_pll;
73 unsigned int vd;
74 int f_diff;
75
76 fref_div = (2 * p->ref) / rd;
77
78 vd = (f + fref_div / 2) / fref_div;
79 if (vd < p->vd_min || vd > p->vd_max)
80 continue;
81
82 f_pll = fref_div * vd;
83 f_diff = f_pll - f;
84 if (f_diff < 0)
85 f_diff = -f_diff;
86
87 if ((unsigned)f_diff < best) {
88 vco.v = vd - 8;
89 vco.r = rd - 2;
90 if (f_diff == 0)
91 break;
92 best = f_diff;
93 }
94 }
95
96 return vco;
97}
98
99EXPORT_SYMBOL(icst525_hz_to_vco);
diff --git a/arch/arm/include/asm/hardware/icst.h b/arch/arm/include/asm/hardware/icst.h
index 4d403680fa47..10382a3dcec9 100644
--- a/arch/arm/include/asm/hardware/icst.h
+++ b/arch/arm/include/asm/hardware/icst.h
@@ -32,4 +32,28 @@ struct icst_vco {
32 unsigned char s; 32 unsigned char s;
33}; 33};
34 34
35unsigned long icst_hz(const struct icst_params *p, struct icst_vco vco);
36struct icst_vco icst_hz_to_vco(const struct icst_params *p, unsigned long freq);
37
38/*
39 * ICST307 VCO frequency must be between 6MHz and 200MHz (3.3 or 5V).
40 * This frequency is pre-output divider.
41 */
42#define ICST307_VCO_MIN 6000000
43#define ICST307_VCO_MAX 200000000
44
45extern const unsigned char icst307_s2div[];
46extern const unsigned char icst307_idx2s[];
47
48/*
49 * ICST525 VCO frequency must be between 10MHz and 200MHz (3V) or 320MHz (5V).
50 * This frequency is pre-output divider.
51 */
52#define ICST525_VCO_MIN 10000000
53#define ICST525_VCO_MAX_3V 200000000
54#define ICST525_VCO_MAX_5V 320000000
55
56extern const unsigned char icst525_s2div[];
57extern const unsigned char icst525_idx2s[];
58
35#endif 59#endif
diff --git a/arch/arm/include/asm/hardware/icst307.h b/arch/arm/include/asm/hardware/icst307.h
deleted file mode 100644
index d76fc6e09e47..000000000000
--- a/arch/arm/include/asm/hardware/icst307.h
+++ /dev/null
@@ -1,34 +0,0 @@
1/*
2 * arch/arm/include/asm/hardware/icst307.h
3 *
4 * Copyright (C) 2003 Deep Blue Solutions, Ltd, All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Support functions for calculating clocks/divisors for the ICS307
11 * clock generators. See http://www.icst.com/ for more information
12 * on these devices.
13 *
14 * This file is similar to the icst525.h file
15 */
16#ifndef ASMARM_HARDWARE_ICST307_H
17#define ASMARM_HARDWARE_ICST307_H
18
19#include <asm/hardware/icst.h>
20
21unsigned long icst307_hz(const struct icst_params *p, struct icst_vco vco);
22struct icst_vco icst307_hz_to_vco(const struct icst_params *p, unsigned long freq);
23
24/*
25 * ICST307 VCO frequency must be between 6MHz and 200MHz (3.3 or 5V).
26 * This frequency is pre-output divider.
27 */
28#define ICST307_VCO_MIN 6000000
29#define ICST307_VCO_MAX 200000000
30
31extern const unsigned char icst307_s2div[];
32extern const unsigned char icst307_idx2s[];
33
34#endif
diff --git a/arch/arm/include/asm/hardware/icst525.h b/arch/arm/include/asm/hardware/icst525.h
deleted file mode 100644
index 2f9b95386b1b..000000000000
--- a/arch/arm/include/asm/hardware/icst525.h
+++ /dev/null
@@ -1,33 +0,0 @@
1/*
2 * arch/arm/include/asm/hardware/icst525.h
3 *
4 * Copyright (C) 2003 Deep Blue Solutions, Ltd, All Rights Reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Support functions for calculating clocks/divisors for the ICST525
11 * clock generators. See http://www.icst.com/ for more information
12 * on these devices.
13 */
14#ifndef ASMARM_HARDWARE_ICST525_H
15#define ASMARM_HARDWARE_ICST525_H
16
17#include <asm/hardware/icst.h>
18
19unsigned long icst525_hz(const struct icst_params *p, struct icst_vco vco);
20struct icst_vco icst525_hz_to_vco(const struct icst_params *p, unsigned long freq);
21
22/*
23 * ICST525 VCO frequency must be between 10MHz and 200MHz (3V) or 320MHz (5V).
24 * This frequency is pre-output divider.
25 */
26#define ICST525_VCO_MIN 10000000
27#define ICST525_VCO_MAX_3V 200000000
28#define ICST525_VCO_MAX_5V 320000000
29
30extern const unsigned char icst525_s2div[];
31extern const unsigned char icst525_idx2s[];
32
33#endif
diff --git a/arch/arm/mach-integrator/clock.c b/arch/arm/mach-integrator/clock.c
index a4f80d33429d..52fc294eac74 100644
--- a/arch/arm/mach-integrator/clock.c
+++ b/arch/arm/mach-integrator/clock.c
@@ -14,7 +14,7 @@
14#include <linux/clk.h> 14#include <linux/clk.h>
15#include <linux/mutex.h> 15#include <linux/mutex.h>
16 16
17#include <asm/hardware/icst525.h> 17#include <asm/hardware/icst.h>
18#include <asm/clkdev.h> 18#include <asm/clkdev.h>
19#include <mach/clkdev.h> 19#include <mach/clkdev.h>
20 20
@@ -38,8 +38,8 @@ EXPORT_SYMBOL(clk_get_rate);
38long clk_round_rate(struct clk *clk, unsigned long rate) 38long clk_round_rate(struct clk *clk, unsigned long rate)
39{ 39{
40 struct icst_vco vco; 40 struct icst_vco vco;
41 vco = icst525_hz_to_vco(clk->params, rate); 41 vco = icst_hz_to_vco(clk->params, rate);
42 return icst525_hz(clk->params, vco); 42 return icst_hz(clk->params, vco);
43} 43}
44EXPORT_SYMBOL(clk_round_rate); 44EXPORT_SYMBOL(clk_round_rate);
45 45
@@ -50,8 +50,8 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
50 if (clk->setvco) { 50 if (clk->setvco) {
51 struct icst_vco vco; 51 struct icst_vco vco;
52 52
53 vco = icst525_hz_to_vco(clk->params, rate); 53 vco = icst_hz_to_vco(clk->params, rate);
54 clk->rate = icst525_hz(clk->params, vco); 54 clk->rate = icst_hz(clk->params, vco);
55 clk->setvco(clk, vco); 55 clk->setvco(clk, vco);
56 ret = 0; 56 ret = 0;
57 } 57 }
diff --git a/arch/arm/mach-integrator/cpu.c b/arch/arm/mach-integrator/cpu.c
index 9481c5408bf8..1cb222daa06d 100644
--- a/arch/arm/mach-integrator/cpu.c
+++ b/arch/arm/mach-integrator/cpu.c
@@ -22,7 +22,7 @@
22#include <mach/hardware.h> 22#include <mach/hardware.h>
23#include <mach/platform.h> 23#include <mach/platform.h>
24#include <asm/mach-types.h> 24#include <asm/mach-types.h>
25#include <asm/hardware/icst525.h> 25#include <asm/hardware/icst.h>
26 26
27static struct cpufreq_driver integrator_driver; 27static struct cpufreq_driver integrator_driver;
28 28
@@ -66,11 +66,11 @@ static int integrator_verify_policy(struct cpufreq_policy *policy)
66 policy->cpuinfo.min_freq, 66 policy->cpuinfo.min_freq,
67 policy->cpuinfo.max_freq); 67 policy->cpuinfo.max_freq);
68 68
69 vco = icst525_hz_to_vco(&cclk_params, policy->max * 1000); 69 vco = icst_hz_to_vco(&cclk_params, policy->max * 1000);
70 policy->max = icst525_hz(&cclk_params, vco) / 1000; 70 policy->max = icst_hz(&cclk_params, vco) / 1000;
71 71
72 vco = icst525_hz_to_vco(&cclk_params, policy->min * 1000); 72 vco = icst_hz_to_vco(&cclk_params, policy->min * 1000);
73 policy->min = icst525_hz(&cclk_params, vco) / 1000; 73 policy->min = icst_hz(&cclk_params, vco) / 1000;
74 74
75 cpufreq_verify_within_limits(policy, 75 cpufreq_verify_within_limits(policy,
76 policy->cpuinfo.min_freq, 76 policy->cpuinfo.min_freq,
@@ -112,17 +112,17 @@ static int integrator_set_target(struct cpufreq_policy *policy,
112 } 112 }
113 vco.v = cm_osc & 255; 113 vco.v = cm_osc & 255;
114 vco.r = 22; 114 vco.r = 22;
115 freqs.old = icst525_hz(&cclk_params, vco) / 1000; 115 freqs.old = icst_hz(&cclk_params, vco) / 1000;
116 116
117 /* icst525_hz_to_vco rounds down -- so we need the next 117 /* icst_hz_to_vco rounds down -- so we need the next
118 * larger freq in case of CPUFREQ_RELATION_L. 118 * larger freq in case of CPUFREQ_RELATION_L.
119 */ 119 */
120 if (relation == CPUFREQ_RELATION_L) 120 if (relation == CPUFREQ_RELATION_L)
121 target_freq += 999; 121 target_freq += 999;
122 if (target_freq > policy->max) 122 if (target_freq > policy->max)
123 target_freq = policy->max; 123 target_freq = policy->max;
124 vco = icst525_hz_to_vco(&cclk_params, target_freq * 1000); 124 vco = icst_hz_to_vco(&cclk_params, target_freq * 1000);
125 freqs.new = icst525_hz(&cclk_params, vco) / 1000; 125 freqs.new = icst_hz(&cclk_params, vco) / 1000;
126 126
127 freqs.cpu = policy->cpu; 127 freqs.cpu = policy->cpu;
128 128
@@ -180,7 +180,7 @@ static unsigned int integrator_get(unsigned int cpu)
180 vco.v = cm_osc & 255; 180 vco.v = cm_osc & 255;
181 vco.r = 22; 181 vco.r = 22;
182 182
183 current_freq = icst525_hz(&cclk_params, vco) / 1000; /* current freq */ 183 current_freq = icst_hz(&cclk_params, vco) / 1000; /* current freq */
184 184
185 set_cpus_allowed(current, cpus_allowed); 185 set_cpus_allowed(current, cpus_allowed);
186 186
diff --git a/arch/arm/mach-integrator/impd1.c b/arch/arm/mach-integrator/impd1.c
index e24cfc357ffb..3e2110216851 100644
--- a/arch/arm/mach-integrator/impd1.c
+++ b/arch/arm/mach-integrator/impd1.c
@@ -24,7 +24,7 @@
24 24
25#include <asm/clkdev.h> 25#include <asm/clkdev.h>
26#include <mach/clkdev.h> 26#include <mach/clkdev.h>
27#include <asm/hardware/icst525.h> 27#include <asm/hardware/icst.h>
28#include <mach/lm.h> 28#include <mach/lm.h>
29#include <mach/impd1.h> 29#include <mach/impd1.h>
30#include <asm/sizes.h> 30#include <asm/sizes.h>
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c
index 9997d1f6c184..a9ab8fda3992 100644
--- a/arch/arm/mach-integrator/integrator_cp.c
+++ b/arch/arm/mach-integrator/integrator_cp.c
@@ -29,7 +29,7 @@
29#include <asm/irq.h> 29#include <asm/irq.h>
30#include <asm/setup.h> 30#include <asm/setup.h>
31#include <asm/mach-types.h> 31#include <asm/mach-types.h>
32#include <asm/hardware/icst525.h> 32#include <asm/hardware/icst.h>
33 33
34#include <mach/cm.h> 34#include <mach/cm.h>
35#include <mach/lm.h> 35#include <mach/lm.h>
diff --git a/arch/arm/mach-realview/clock.c b/arch/arm/mach-realview/clock.c
index 2ba0667d18f5..18c545921e41 100644
--- a/arch/arm/mach-realview/clock.c
+++ b/arch/arm/mach-realview/clock.c
@@ -18,7 +18,7 @@
18#include <linux/clk.h> 18#include <linux/clk.h>
19#include <linux/mutex.h> 19#include <linux/mutex.h>
20 20
21#include <asm/hardware/icst307.h> 21#include <asm/hardware/icst.h>
22 22
23#include "clock.h" 23#include "clock.h"
24 24
@@ -42,8 +42,8 @@ EXPORT_SYMBOL(clk_get_rate);
42long clk_round_rate(struct clk *clk, unsigned long rate) 42long clk_round_rate(struct clk *clk, unsigned long rate)
43{ 43{
44 struct icst_vco vco; 44 struct icst_vco vco;
45 vco = icst307_hz_to_vco(clk->params, rate); 45 vco = icst_hz_to_vco(clk->params, rate);
46 return icst307_hz(clk->params, vco); 46 return icst_hz(clk->params, vco);
47} 47}
48EXPORT_SYMBOL(clk_round_rate); 48EXPORT_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_hz_to_vco(clk->params, rate); 57 vco = icst_hz_to_vco(clk->params, rate);
58 clk->rate = icst307_hz(clk->params, vco); 58 clk->rate = icst_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 26d44caad540..a8c215a406a2 100644
--- a/arch/arm/mach-realview/core.c
+++ b/arch/arm/mach-realview/core.c
@@ -39,7 +39,7 @@
39#include <asm/leds.h> 39#include <asm/leds.h>
40#include <asm/mach-types.h> 40#include <asm/mach-types.h>
41#include <asm/hardware/arm_timer.h> 41#include <asm/hardware/arm_timer.h>
42#include <asm/hardware/icst307.h> 42#include <asm/hardware/icst.h>
43 43
44#include <asm/mach/arch.h> 44#include <asm/mach/arch.h>
45#include <asm/mach/flash.h> 45#include <asm/mach/flash.h>
diff --git a/arch/arm/mach-realview/realview_eb.c b/arch/arm/mach-realview/realview_eb.c
index 7d857d300558..39d953c89d9a 100644
--- a/arch/arm/mach-realview/realview_eb.c
+++ b/arch/arm/mach-realview/realview_eb.c
@@ -32,7 +32,6 @@
32#include <asm/leds.h> 32#include <asm/leds.h>
33#include <asm/mach-types.h> 33#include <asm/mach-types.h>
34#include <asm/hardware/gic.h> 34#include <asm/hardware/gic.h>
35#include <asm/hardware/icst307.h>
36#include <asm/hardware/cache-l2x0.h> 35#include <asm/hardware/cache-l2x0.h>
37#include <asm/localtimer.h> 36#include <asm/localtimer.h>
38 37
diff --git a/arch/arm/mach-realview/realview_pb1176.c b/arch/arm/mach-realview/realview_pb1176.c
index 44392e51dd50..a93aac5f473e 100644
--- a/arch/arm/mach-realview/realview_pb1176.c
+++ b/arch/arm/mach-realview/realview_pb1176.c
@@ -32,7 +32,6 @@
32#include <asm/leds.h> 32#include <asm/leds.h>
33#include <asm/mach-types.h> 33#include <asm/mach-types.h>
34#include <asm/hardware/gic.h> 34#include <asm/hardware/gic.h>
35#include <asm/hardware/icst307.h>
36#include <asm/hardware/cache-l2x0.h> 35#include <asm/hardware/cache-l2x0.h>
37 36
38#include <asm/mach/arch.h> 37#include <asm/mach/arch.h>
diff --git a/arch/arm/mach-realview/realview_pb11mp.c b/arch/arm/mach-realview/realview_pb11mp.c
index 3e02731af959..c7c656e235cc 100644
--- a/arch/arm/mach-realview/realview_pb11mp.c
+++ b/arch/arm/mach-realview/realview_pb11mp.c
@@ -32,7 +32,6 @@
32#include <asm/leds.h> 32#include <asm/leds.h>
33#include <asm/mach-types.h> 33#include <asm/mach-types.h>
34#include <asm/hardware/gic.h> 34#include <asm/hardware/gic.h>
35#include <asm/hardware/icst307.h>
36#include <asm/hardware/cache-l2x0.h> 35#include <asm/hardware/cache-l2x0.h>
37#include <asm/localtimer.h> 36#include <asm/localtimer.h>
38 37
diff --git a/arch/arm/mach-realview/realview_pba8.c b/arch/arm/mach-realview/realview_pba8.c
index fe4e25c4201a..3e3aaa3a2bc0 100644
--- a/arch/arm/mach-realview/realview_pba8.c
+++ b/arch/arm/mach-realview/realview_pba8.c
@@ -31,7 +31,6 @@
31#include <asm/leds.h> 31#include <asm/leds.h>
32#include <asm/mach-types.h> 32#include <asm/mach-types.h>
33#include <asm/hardware/gic.h> 33#include <asm/hardware/gic.h>
34#include <asm/hardware/icst307.h>
35 34
36#include <asm/mach/arch.h> 35#include <asm/mach/arch.h>
37#include <asm/mach/map.h> 36#include <asm/mach/map.h>
diff --git a/arch/arm/mach-versatile/clock.c b/arch/arm/mach-versatile/clock.c
index 82753be453d0..adc67d771c78 100644
--- a/arch/arm/mach-versatile/clock.c
+++ b/arch/arm/mach-versatile/clock.c
@@ -19,7 +19,7 @@
19#include <linux/mutex.h> 19#include <linux/mutex.h>
20 20
21#include <asm/clkdev.h> 21#include <asm/clkdev.h>
22#include <asm/hardware/icst307.h> 22#include <asm/hardware/icst.h>
23 23
24#include "clock.h" 24#include "clock.h"
25 25
@@ -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_hz_to_vco(clk->params, rate); 46 vco = icst_hz_to_vco(clk->params, rate);
47 return icst307_hz(clk->params, vco); 47 return icst_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_hz_to_vco(clk->params, rate); 58 vco = icst_hz_to_vco(clk->params, rate);
59 clk->rate = icst307_hz(clk->params, vco); 59 clk->rate = icst_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 51d7aeb6a507..3c67691d4e72 100644
--- a/arch/arm/mach-versatile/core.c
+++ b/arch/arm/mach-versatile/core.c
@@ -38,7 +38,7 @@
38#include <asm/irq.h> 38#include <asm/irq.h>
39#include <asm/leds.h> 39#include <asm/leds.h>
40#include <asm/hardware/arm_timer.h> 40#include <asm/hardware/arm_timer.h>
41#include <asm/hardware/icst307.h> 41#include <asm/hardware/icst.h>
42#include <asm/hardware/vic.h> 42#include <asm/hardware/vic.h>
43#include <asm/mach-types.h> 43#include <asm/mach-types.h>
44 44