diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-10-03 15:57:10 +0200 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2014-11-13 17:25:06 +0100 |
commit | f0d2f68a6387867c4748bc94c9b0165a49701204 (patch) | |
tree | cc53c00581f04a84b514ea5ce571b6b1a38c3a1d /arch/arm/mach-omap2/clock.c | |
parent | Linux 3.18-rc1 (diff) | |
download | linux-f0d2f68a6387867c4748bc94c9b0165a49701204.tar.xz linux-f0d2f68a6387867c4748bc94c9b0165a49701204.zip |
ARM: OMAP3: clock: use clk_features flags for omap3 DPLL4 checks
DPLL4 can't be reprogrammed on OMAP3430 ES1.0 due to hardware limitation.
Currently, the code does runtime omap_rev() check to see the chip it is
being executed on, instead, change this to use clk_features flags.
This avoids need for runtime omap_rev() checks.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 500530d1364a..c2b239857cc4 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -771,4 +771,8 @@ void __init ti_clk_init_features(void) ti_clk_features.cm_idlest_val = OMAP24XX_CM_IDLEST_VAL; else if (cpu_is_omap34xx()) ti_clk_features.cm_idlest_val = OMAP34XX_CM_IDLEST_VAL; + + /* On OMAP3430 ES1.0, DPLL4 can't be re-programmed */ + if (omap_rev() == OMAP3430_REV_ES1_0) + ti_clk_features.flags |= TI_CLK_DPLL4_DENY_REPROGRAM; } |