diff options
author | Kevin Hilman <khilman@ti.com> | 2011-03-23 15:22:23 +0100 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 20:39:10 +0200 |
commit | 8f1bec246c44d936a02cc6b781bfd9ba670d7e45 (patch) | |
tree | 5527e0a405ecceb20515825ed3ee19e4d0ec4dd5 /arch/arm | |
parent | OMAP3+: voltage: add scalable flag to voltagedomain (diff) | |
download | linux-8f1bec246c44d936a02cc6b781bfd9ba670d7e45.tar.xz linux-8f1bec246c44d936a02cc6b781bfd9ba670d7e45.zip |
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')
-rw-r--r-- | arch/arm/mach-omap2/powerdomain.h | 7 |
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 @@ #include <plat/cpu.h> +#include "voltage.h" + /* Powerdomain basic power states */ #define PWRDM_POWER_OFF 0x0 #define PWRDM_POWER_RET 0x1 @@ -78,6 +80,7 @@ struct powerdomain; /** * struct powerdomain - OMAP powerdomain * @name: Powerdomain name + * @voltdm: voltagedomain containing this powerdomain * @prcm_offs: the address offset from CM_BASE/PRM_BASE * @prcm_partition: (OMAP4 only) the PRCM partition ID containing @prcm_offs * @pwrsts: Possible powerdomain power states @@ -97,6 +100,10 @@ struct powerdomain; */ struct powerdomain { const char *name; + union { + const char *name; + struct voltagedomain *ptr; + } voltdm; const s16 prcm_offs; const u8 pwrsts; const u8 pwrsts_logic_ret; |