aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xarch/arm/mach-omap2/Kconfig10
-rw-r--r--arch/arm/mach-omap2/dpll44xx.c8
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index ebe9257..145d915 100755
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -391,6 +391,16 @@ config OMAP4_DPLL_CASCADING
- Display is Off.
- No USB.
+config OMAP4_ONLY_OMAP4430_DPLL_CASCADING
+ bool "Enable DPLL Cascading for OMAP4430 only"
+ depends on OMAP4_DPLL_CASCADING
+ default y
+ help
+ Enables DPLL Cascading only for OMAP4430.
+ Current DPLL cascading implementation is going to be used
+ only on OMAP4430, where it provides significant power savings.
+ Keeps DPLL cascading disabled for other OMAPs.
+
config OMAP_RAM_CONSOLE
bool "Enable OMAP support for Android RAM console"
diff --git a/arch/arm/mach-omap2/dpll44xx.c b/arch/arm/mach-omap2/dpll44xx.c
index 061276a..36ccfec 100644
--- a/arch/arm/mach-omap2/dpll44xx.c
+++ b/arch/arm/mach-omap2/dpll44xx.c
@@ -1489,6 +1489,10 @@ int omap4_dpll_cascading_blocker_hold(struct device *dev)
int list_was_empty = 0;
int ret = 0;
+#ifdef CONFIG_OMAP4_ONLY_OMAP4430_DPLL_CASCADING
+ if (!cpu_is_omap443x())
+ return ret;
+#endif
if (!dev)
return -EINVAL;
@@ -1543,6 +1547,10 @@ int omap4_dpll_cascading_blocker_release(struct device *dev)
int ret = 0;
int found = 0;
+#ifdef CONFIG_OMAP4_ONLY_OMAP4430_DPLL_CASCADING
+ if (!cpu_is_omap443x())
+ return ret;
+#endif
if (!dev)
return -EINVAL;