diff mbox

[2/2] DSPBRIDGE: Set VDD1 OPP1 while MPU initiated OFF mode

Message ID 1248418882-28164-2-git-send-email-ameya.palande@nokia.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Ameya Palande July 24, 2009, 7:01 a.m. UTC
Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
---
 drivers/dsp/bridge/wmd/tiomap3430_pwr.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

Comments

omar ramirez Aug. 13, 2009, 6:37 a.m. UTC | #1
>From: Ameya Palande [mailto:ameya.palande@nokia.com]
>Subject: [PATCH 2/2] DSPBRIDGE: Set VDD1 OPP1 while MPU initiated OFF mode
>
>Signed-off-by: Ameya Palande <ameya.palande@nokia.com>

Acked-by: Omar Ramirez Luna <omar.ramirez@ti.com>

>---
> drivers/dsp/bridge/wmd/tiomap3430_pwr.c |   15 ++++++++++++++-
> 1 files changed, 14 insertions(+), 1 deletions(-)
>
>diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
>index 7aa58d1..dfac5b6 100644
>--- a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
>+++ b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
>@@ -292,8 +292,21 @@ DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd,
>
> 		/* Turn off DSP Peripheral clocks  */
> 		status = DSP_PeripheralClocks_Disable(pDevContext, NULL);
>-		if (DSP_FAILED(status))
>+		if (DSP_FAILED(status)) {
> 			DBG_Trace(DBG_LEVEL7, "SleepDSP- FAILED\n");
>+			return status;
>+		}
>+#ifdef CONFIG_BRIDGE_DVFS
>+		else if (targetPwrState == HW_PWR_STATE_OFF) {
>+			struct dspbridge_platform_data *pdata =
>+				omap_dspbridge_dev->dev.platform_data;
>+			/*
>+			 * Set the OPP to low level before moving to OFF mode
>+			 */
>+			if (pdata->dsp_set_min_opp)
>+				(*pdata->dsp_set_min_opp)(VDD1_OPP1);
>+		}
>+#endif /* CONFIG_BRIDGE_DVFS */
> 	}
> #endif /* CONFIG_PM */
> 	return status;
>--
>1.6.2.4
>

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
index 7aa58d1..dfac5b6 100644
--- a/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
+++ b/drivers/dsp/bridge/wmd/tiomap3430_pwr.c
@@ -292,8 +292,21 @@  DSP_STATUS SleepDSP(struct WMD_DEV_CONTEXT *pDevContext, IN u32 dwCmd,
 
 		/* Turn off DSP Peripheral clocks  */
 		status = DSP_PeripheralClocks_Disable(pDevContext, NULL);
-		if (DSP_FAILED(status))
+		if (DSP_FAILED(status)) {
 			DBG_Trace(DBG_LEVEL7, "SleepDSP- FAILED\n");
+			return status;
+		}
+#ifdef CONFIG_BRIDGE_DVFS
+		else if (targetPwrState == HW_PWR_STATE_OFF) {
+			struct dspbridge_platform_data *pdata =
+				omap_dspbridge_dev->dev.platform_data;
+			/*
+			 * Set the OPP to low level before moving to OFF mode
+			 */
+			if (pdata->dsp_set_min_opp)
+				(*pdata->dsp_set_min_opp)(VDD1_OPP1);
+		}
+#endif /* CONFIG_BRIDGE_DVFS */
 	}
 #endif /* CONFIG_PM */
 	return status;