===================================================================
@@ -198,6 +198,28 @@ u8 omap_pm_dsp_get_opp(void)
return 0;
}
+u8 omap_pm_vdd1_get_opp(void)
+{
+ pr_debug("OMAP PM: User requests current VDD1 OPP\n");
+
+ /*
+ * For l-o call resource_get_level of vdd1_opp resource.
+ */
+
+ return 0;
+}
+
+u8 omap_pm_vdd2_get_opp(void)
+{
+ pr_debug("OMAP PM: User requests current VDD2 OPP\n");
+
+ /*
+ * For l-o call resource_get_level of vdd2_opp resource.
+ */
+
+ return 0;
+}
+
/*
* CPUFreq-originated constraint
*
===================================================================
@@ -209,10 +209,23 @@ u8 omap_pm_dsp_get_opp(void)
{
pr_debug("OMAP PM: DSP requests current DSP OPP ID\n");
return resource_get_level("vdd1_opp");
- return 0;
}
EXPORT_SYMBOL(omap_pm_dsp_get_opp);
+u8 omap_pm_vdd1_get_opp(void)
+{
+ pr_debug("OMAP PM: User requests current VDD1 OPP\n");
+ return resource_get_level("vdd1_opp");
+}
+EXPORT_SYMBOL(omap_pm_vdd1_get_opp);
+
+u8 omap_pm_vdd2_get_opp(void)
+{
+ pr_debug("OMAP PM: User requests current VDD2 OPP\n");
+ return resource_get_level("vdd2_opp");
+}
+EXPORT_SYMBOL(omap_pm_vdd2_get_opp);
+
/*
* CPUFreq-originated constraint
*
===================================================================
@@ -239,6 +239,23 @@ void omap_pm_dsp_set_min_opp(u8 opp_id);
*/
u8 omap_pm_dsp_get_opp(void);
+/**
+ * omap_pm_vdd1_get_opp - report the current VDD1 OPP
+ *
+ * Report the current VDD1 OPP number.
+ *
+ * Returns the current VDD1 OPP ID, or 0 upon error.
+ */
+u8 omap_pm_vdd1_get_opp(void);
+
+/**
+ * omap_pm_vdd2_get_opp - report the current VDD2 OPP
+ *
+ * Report the current VDD2 OPP number.
+ *
+ * Returns the current VDD2 OPP ID, or 0 upon error.
+ */
+u8 omap_pm_vdd2_get_opp(void);
/*
* CPUFreq-originated constraint--