diff options
Diffstat (limited to 'arch/arm/plat-omap/include/mach/powerdomain.h')
-rw-r--r-- | arch/arm/plat-omap/include/mach/powerdomain.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/include/mach/powerdomain.h b/arch/arm/plat-omap/include/mach/powerdomain.h index 69c9e675d8ee..6271d8556a40 100644 --- a/arch/arm/plat-omap/include/mach/powerdomain.h +++ b/arch/arm/plat-omap/include/mach/powerdomain.h | |||
@@ -117,6 +117,13 @@ struct powerdomain { | |||
117 | 117 | ||
118 | struct list_head node; | 118 | struct list_head node; |
119 | 119 | ||
120 | int state; | ||
121 | unsigned state_counter[4]; | ||
122 | |||
123 | #ifdef CONFIG_PM_DEBUG | ||
124 | s64 timer; | ||
125 | s64 state_timer[4]; | ||
126 | #endif | ||
120 | }; | 127 | }; |
121 | 128 | ||
122 | 129 | ||
@@ -126,7 +133,8 @@ int pwrdm_register(struct powerdomain *pwrdm); | |||
126 | int pwrdm_unregister(struct powerdomain *pwrdm); | 133 | int pwrdm_unregister(struct powerdomain *pwrdm); |
127 | struct powerdomain *pwrdm_lookup(const char *name); | 134 | struct powerdomain *pwrdm_lookup(const char *name); |
128 | 135 | ||
129 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm)); | 136 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), |
137 | void *user); | ||
130 | 138 | ||
131 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); | 139 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
132 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); | 140 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
@@ -164,4 +172,9 @@ bool pwrdm_has_hdwr_sar(struct powerdomain *pwrdm); | |||
164 | 172 | ||
165 | int pwrdm_wait_transition(struct powerdomain *pwrdm); | 173 | int pwrdm_wait_transition(struct powerdomain *pwrdm); |
166 | 174 | ||
175 | int pwrdm_state_switch(struct powerdomain *pwrdm); | ||
176 | int pwrdm_clkdm_state_switch(struct clockdomain *clkdm); | ||
177 | int pwrdm_pre_transition(void); | ||
178 | int pwrdm_post_transition(void); | ||
179 | |||
167 | #endif | 180 | #endif |