Merge branch 'l2x0-pull-rmk' of git://dev.omapzoom.org/pub/scm/santosh/kernel-omap4...
[pandora-kernel.git] / arch / arm / plat-omap / include / plat / powerdomain.h
index d82b2c0..9ca420d 100644 (file)
@@ -31,6 +31,8 @@
 #define PWRDM_MAX_PWRSTS       4
 
 /* Powerdomain allowable state bitfields */
+#define PWRSTS_ON              (1 << PWRDM_POWER_ON)
+#define PWRSTS_OFF             (1 << PWRDM_POWER_OFF)
 #define PWRSTS_OFF_ON          ((1 << PWRDM_POWER_OFF) | \
                                 (1 << PWRDM_POWER_ON))
 
                                          * in MEM bank 1 position. This is
                                          * true for OMAP3430
                                          */
+#define PWRDM_HAS_LOWPOWERSTATECHANGE  (1 << 2) /*
+                                                 * support to transition from a
+                                                 * sleep state to a lower sleep
+                                                 * state without waking up the
+                                                 * powerdomain
+                                                 */
 
 /*
  * Number of memory banks that are power-controllable. On OMAP4430, the
@@ -154,5 +162,6 @@ int pwrdm_state_switch(struct powerdomain *pwrdm);
 int pwrdm_clkdm_state_switch(struct clockdomain *clkdm);
 int pwrdm_pre_transition(void);
 int pwrdm_post_transition(void);
+int pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm);
 
 #endif