Commit 4de2edbd15ff70c77e1d018611d06f7801fc2b72
1 parent
643761ac43
Exists in
master
and in
7 other branches
ARM: ICST: provide definitions for max/min VCO frequencies
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Showing 9 changed files with 23 additions and 8 deletions Side-by-side Diff
arch/arm/common/icst307.c
arch/arm/common/icst525.c
arch/arm/include/asm/hardware/icst307.h
... | ... | @@ -21,5 +21,12 @@ |
21 | 21 | unsigned long icst307_khz(const struct icst_params *p, struct icst_vco vco); |
22 | 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 | 31 | #endif |
arch/arm/include/asm/hardware/icst525.h
... | ... | @@ -19,5 +19,13 @@ |
19 | 19 | unsigned long icst525_khz(const struct icst_params *p, struct icst_vco vco); |
20 | 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 | 30 | #endif |
arch/arm/mach-integrator/cpu.c
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | |
34 | 34 | static const struct icst_params lclk_params = { |
35 | 35 | .ref = 24000, |
36 | - .vco_max = 320000, | |
36 | + .vco_max = ICST525_VCO_MAX_5V, | |
37 | 37 | .vd_min = 8, |
38 | 38 | .vd_max = 132, |
39 | 39 | .rd_min = 24, |
... | ... | @@ -42,7 +42,7 @@ |
42 | 42 | |
43 | 43 | static const struct icst_params cclk_params = { |
44 | 44 | .ref = 24000, |
45 | - .vco_max = 320000, | |
45 | + .vco_max = ICST525_VCO_MAX_5V, | |
46 | 46 | .vd_min = 12, |
47 | 47 | .vd_max = 160, |
48 | 48 | .rd_min = 24, |
arch/arm/mach-integrator/impd1.c
arch/arm/mach-integrator/integrator_cp.c
arch/arm/mach-realview/core.c
arch/arm/mach-versatile/core.c