aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/powerdomain.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/include/plat/powerdomain.h')
-rw-r--r--arch/arm/plat-omap/include/plat/powerdomain.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/plat/powerdomain.h b/arch/arm/plat-omap/include/plat/powerdomain.h
index 3d45ee1d3cf4..5a80ddb4bb7e 100644
--- a/arch/arm/plat-omap/include/plat/powerdomain.h
+++ b/arch/arm/plat-omap/include/plat/powerdomain.h
@@ -28,6 +28,8 @@
28#define PWRDM_POWER_INACTIVE 0x2 28#define PWRDM_POWER_INACTIVE 0x2
29#define PWRDM_POWER_ON 0x3 29#define PWRDM_POWER_ON 0x3
30 30
31#define PWRDM_MAX_PWRSTS 4
32
31/* Powerdomain allowable state bitfields */ 33/* Powerdomain allowable state bitfields */
32#define PWRSTS_OFF_ON ((1 << PWRDM_POWER_OFF) | \ 34#define PWRSTS_OFF_ON ((1 << PWRDM_POWER_OFF) | \
33 (1 << PWRDM_POWER_ON)) 35 (1 << PWRDM_POWER_ON))
@@ -118,11 +120,11 @@ struct powerdomain {
118 struct list_head node; 120 struct list_head node;
119 121
120 int state; 122 int state;
121 unsigned state_counter[4]; 123 unsigned state_counter[PWRDM_MAX_PWRSTS];
122 124
123#ifdef CONFIG_PM_DEBUG 125#ifdef CONFIG_PM_DEBUG
124 s64 timer; 126 s64 timer;
125 s64 state_timer[4]; 127 s64 state_timer[PWRDM_MAX_PWRSTS];
126#endif 128#endif
127}; 129};
128 130