aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/powerdomain.h
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2009-12-08 18:33:12 -0500
committerpaul <paul@twilight.(none)>2009-12-11 19:00:41 -0500
commit2354eb5a943e64c5e6e249147381e9715aa5d54b (patch)
tree6341bf9adfb93f3a59a1476a7fc5254f24529bdd /arch/arm/plat-omap/include/plat/powerdomain.h
parent6a06fa6863f190a0ed72f273a2ae5fedc89973ff (diff)
OMAP powerdomain/PM: use symbolic constants for the max number of power states
Replace some bare constants with power states. Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Kevin Hilman <khilman@deeprootsystems.com>
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