aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-10-03 09:57:10 -0400
committerPaul Walmsley <paul@pwsan.com>2014-11-13 11:25:06 -0500
commitf0d2f68a6387867c4748bc94c9b0165a49701204 (patch)
treecc53c00581f04a84b514ea5ce571b6b1a38c3a1d /arch/arm/mach-omap2/clock.c
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
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.c4
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)
771 ti_clk_features.cm_idlest_val = OMAP24XX_CM_IDLEST_VAL; 771 ti_clk_features.cm_idlest_val = OMAP24XX_CM_IDLEST_VAL;
772 else if (cpu_is_omap34xx()) 772 else if (cpu_is_omap34xx())
773 ti_clk_features.cm_idlest_val = OMAP34XX_CM_IDLEST_VAL; 773 ti_clk_features.cm_idlest_val = OMAP34XX_CM_IDLEST_VAL;
774
775 /* On OMAP3430 ES1.0, DPLL4 can't be re-programmed */
776 if (omap_rev() == OMAP3430_REV_ES1_0)
777 ti_clk_features.flags |= TI_CLK_DPLL4_DENY_REPROGRAM;
774} 778}