aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/powerdomain.h
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-03-23 10:22:23 -0400
committerKevin Hilman <khilman@ti.com>2011-09-15 14:39:10 -0400
commit8f1bec246c44d936a02cc6b781bfd9ba670d7e45 (patch)
tree5527e0a405ecceb20515825ed3ee19e4d0ec4dd5 /arch/arm/mach-omap2/powerdomain.h
parent37efca7e9deacf3c11bda82df5b7594f098daa69 (diff)
OMAP2+: powerdomain: add voltagedomain to struct powerdomain
Each powerdomain is associated with a voltage domain. Add an entry to struct powerdomain where the enclosing voltagedomain can be referenced. Modeled after similar relationship between clockdomains and powerdomains. Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/powerdomain.h')
-rw-r--r--arch/arm/mach-omap2/powerdomain.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/powerdomain.h b/arch/arm/mach-omap2/powerdomain.h
index 8febd84e5e31..898d4fc0d160 100644
--- a/arch/arm/mach-omap2/powerdomain.h
+++ b/arch/arm/mach-omap2/powerdomain.h
@@ -24,6 +24,8 @@
24 24
25#include <plat/cpu.h> 25#include <plat/cpu.h>
26 26
27#include "voltage.h"
28
27/* Powerdomain basic power states */ 29/* Powerdomain basic power states */
28#define PWRDM_POWER_OFF 0x0 30#define PWRDM_POWER_OFF 0x0
29#define PWRDM_POWER_RET 0x1 31#define PWRDM_POWER_RET 0x1
@@ -78,6 +80,7 @@ struct powerdomain;
78/** 80/**
79 * struct powerdomain - OMAP powerdomain 81 * struct powerdomain - OMAP powerdomain
80 * @name: Powerdomain name 82 * @name: Powerdomain name
83 * @voltdm: voltagedomain containing this powerdomain
81 * @prcm_offs: the address offset from CM_BASE/PRM_BASE 84 * @prcm_offs: the address offset from CM_BASE/PRM_BASE
82 * @prcm_partition: (OMAP4 only) the PRCM partition ID containing @prcm_offs 85 * @prcm_partition: (OMAP4 only) the PRCM partition ID containing @prcm_offs
83 * @pwrsts: Possible powerdomain power states 86 * @pwrsts: Possible powerdomain power states
@@ -97,6 +100,10 @@ struct powerdomain;
97 */ 100 */
98struct powerdomain { 101struct powerdomain {
99 const char *name; 102 const char *name;
103 union {
104 const char *name;
105 struct voltagedomain *ptr;
106 } voltdm;
100 const s16 prcm_offs; 107 const s16 prcm_offs;
101 const u8 pwrsts; 108 const u8 pwrsts;
102 const u8 pwrsts_logic_ret; 109 const u8 pwrsts_logic_ret;