diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-01-16 13:08:47 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-05-02 04:35:30 -0400 |
commit | 4de2edbd15ff70c77e1d018611d06f7801fc2b72 (patch) | |
tree | 576899cd3a6492bb01d8326851ee63e1ea58fc0a /arch | |
parent | 643761ac43dfe4bea1195e966fc65a9403cdcb9f (diff) |
ARM: ICST: provide definitions for max/min VCO frequencies
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/common/icst307.c | 2 | ||||
-rw-r--r-- | arch/arm/common/icst525.c | 2 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/icst307.h | 7 | ||||
-rw-r--r-- | arch/arm/include/asm/hardware/icst525.h | 8 | ||||
-rw-r--r-- | arch/arm/mach-integrator/cpu.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-integrator/impd1.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-realview/core.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-versatile/core.c | 2 |
9 files changed, 23 insertions, 8 deletions
diff --git a/arch/arm/common/icst307.c b/arch/arm/common/icst307.c index f78f5b5880c2..f6063c95e256 100644 --- a/arch/arm/common/icst307.c +++ b/arch/arm/common/icst307.c | |||
@@ -53,7 +53,7 @@ icst307_khz_to_vco(const struct icst_params *p, unsigned long freq) | |||
53 | /* | 53 | /* |
54 | * f must be between 6MHz and 200MHz (3.3 or 5V) | 54 | * f must be between 6MHz and 200MHz (3.3 or 5V) |
55 | */ | 55 | */ |
56 | if (f > 6000 && f <= p->vco_max) | 56 | if (f > ICST307_VCO_MIN && f <= p->vco_max) |
57 | break; | 57 | break; |
58 | } while (i < ARRAY_SIZE(idx2s)); | 58 | } while (i < ARRAY_SIZE(idx2s)); |
59 | 59 | ||
diff --git a/arch/arm/common/icst525.c b/arch/arm/common/icst525.c index eadf983ee434..34dc2e1b9efc 100644 --- a/arch/arm/common/icst525.c +++ b/arch/arm/common/icst525.c | |||
@@ -51,7 +51,7 @@ icst525_khz_to_vco(const struct icst_params *p, unsigned long freq) | |||
51 | * f must be between 10MHz and | 51 | * f must be between 10MHz and |
52 | * 320MHz (5V) or 200MHz (3V) | 52 | * 320MHz (5V) or 200MHz (3V) |
53 | */ | 53 | */ |
54 | if (f > 10000 && f <= p->vco_max) | 54 | if (f > ICST525_VCO_MIN && f <= p->vco_max) |
55 | break; | 55 | break; |
56 | } while (i < ARRAY_SIZE(idx2s)); | 56 | } while (i < ARRAY_SIZE(idx2s)); |
57 | 57 | ||
diff --git a/arch/arm/include/asm/hardware/icst307.h b/arch/arm/include/asm/hardware/icst307.h index 8d0820a654db..0c4e37e3fdef 100644 --- a/arch/arm/include/asm/hardware/icst307.h +++ b/arch/arm/include/asm/hardware/icst307.h | |||
@@ -21,4 +21,11 @@ | |||
21 | unsigned long icst307_khz(const struct icst_params *p, struct icst_vco vco); | 21 | unsigned long icst307_khz(const struct icst_params *p, struct icst_vco vco); |
22 | struct icst_vco icst307_khz_to_vco(const struct icst_params *p, unsigned long freq); | 22 | struct icst_vco icst307_khz_to_vco(const struct icst_params *p, unsigned long freq); |
23 | 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 6000 | ||
29 | #define ICST307_VCO_MAX 200000 | ||
30 | |||
24 | #endif | 31 | #endif |
diff --git a/arch/arm/include/asm/hardware/icst525.h b/arch/arm/include/asm/hardware/icst525.h index 42a274e59fa2..3b72c132e24f 100644 --- a/arch/arm/include/asm/hardware/icst525.h +++ b/arch/arm/include/asm/hardware/icst525.h | |||
@@ -19,4 +19,12 @@ | |||
19 | unsigned long icst525_khz(const struct icst_params *p, struct icst_vco vco); | 19 | unsigned long icst525_khz(const struct icst_params *p, struct icst_vco vco); |
20 | struct icst_vco icst525_khz_to_vco(const struct icst_params *p, unsigned long freq); | 20 | struct icst_vco icst525_khz_to_vco(const struct icst_params *p, unsigned long freq); |
21 | 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 10000 | ||
27 | #define ICST525_VCO_MAX_3V 200000 | ||
28 | #define ICST525_VCO_MAX_5V 320000 | ||
29 | |||
22 | #endif | 30 | #endif |
diff --git a/arch/arm/mach-integrator/cpu.c b/arch/arm/mach-integrator/cpu.c index c4e5debeb48c..1671b4a363b1 100644 --- a/arch/arm/mach-integrator/cpu.c +++ b/arch/arm/mach-integrator/cpu.c | |||
@@ -33,7 +33,7 @@ static struct cpufreq_driver integrator_driver; | |||
33 | 33 | ||
34 | static const struct icst_params lclk_params = { | 34 | static const struct icst_params lclk_params = { |
35 | .ref = 24000, | 35 | .ref = 24000, |
36 | .vco_max = 320000, | 36 | .vco_max = ICST525_VCO_MAX_5V, |
37 | .vd_min = 8, | 37 | .vd_min = 8, |
38 | .vd_max = 132, | 38 | .vd_max = 132, |
39 | .rd_min = 24, | 39 | .rd_min = 24, |
@@ -42,7 +42,7 @@ static const struct icst_params lclk_params = { | |||
42 | 42 | ||
43 | static const struct icst_params cclk_params = { | 43 | static const struct icst_params cclk_params = { |
44 | .ref = 24000, | 44 | .ref = 24000, |
45 | .vco_max = 320000, | 45 | .vco_max = ICST525_VCO_MAX_5V, |
46 | .vd_min = 12, | 46 | .vd_min = 12, |
47 | .vd_max = 160, | 47 | .vd_max = 160, |
48 | .rd_min = 24, | 48 | .rd_min = 24, |
diff --git a/arch/arm/mach-integrator/impd1.c b/arch/arm/mach-integrator/impd1.c index dfb961b67afa..5aca7ebea3ce 100644 --- a/arch/arm/mach-integrator/impd1.c +++ b/arch/arm/mach-integrator/impd1.c | |||
@@ -42,7 +42,7 @@ struct impd1_module { | |||
42 | 42 | ||
43 | static const struct icst_params impd1_vco_params = { | 43 | static const struct icst_params impd1_vco_params = { |
44 | .ref = 24000, /* 24 MHz */ | 44 | .ref = 24000, /* 24 MHz */ |
45 | .vco_max = 200000, /* 200 MHz */ | 45 | .vco_max = ICST525_VCO_MAX_3V, |
46 | .vd_min = 12, | 46 | .vd_min = 12, |
47 | .vd_max = 519, | 47 | .vd_max = 519, |
48 | .rd_min = 3, | 48 | .rd_min = 3, |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index 15bfbe2e1df8..27f95106b47c 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -270,7 +270,7 @@ static void __init intcp_init_irq(void) | |||
270 | 270 | ||
271 | static const struct icst_params cp_auxvco_params = { | 271 | static const struct icst_params cp_auxvco_params = { |
272 | .ref = 24000, | 272 | .ref = 24000, |
273 | .vco_max = 320000, | 273 | .vco_max = ICST525_VCO_MAX_5V, |
274 | .vd_min = 8, | 274 | .vd_min = 8, |
275 | .vd_max = 263, | 275 | .vd_max = 263, |
276 | .rd_min = 3, | 276 | .rd_min = 3, |
diff --git a/arch/arm/mach-realview/core.c b/arch/arm/mach-realview/core.c index ac504745fed1..5a850f0dc36c 100644 --- a/arch/arm/mach-realview/core.c +++ b/arch/arm/mach-realview/core.c | |||
@@ -275,7 +275,7 @@ struct mmci_platform_data realview_mmc1_plat_data = { | |||
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 = 24000, |
278 | .vco_max = 200000, | 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, |
281 | .rd_min = 1 + 2, | 281 | .rd_min = 1 + 2, |
diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c index ded71343553f..f8ed561ec698 100644 --- a/arch/arm/mach-versatile/core.c +++ b/arch/arm/mach-versatile/core.c | |||
@@ -381,7 +381,7 @@ static struct mmci_platform_data mmc0_plat_data = { | |||
381 | */ | 381 | */ |
382 | static const struct icst_params versatile_oscvco_params = { | 382 | static const struct icst_params versatile_oscvco_params = { |
383 | .ref = 24000, | 383 | .ref = 24000, |
384 | .vco_max = 200000, | 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, |
387 | .rd_min = 1 + 2, | 387 | .rd_min = 1 + 2, |