[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-3.0 / pm-wip / voltdm / 0103-OMAP2-powerdomain-add-voltagedomain-to-struct-powerd.patch
1 From 4380f30498f0096856479011df85f956081ce26c Mon Sep 17 00:00:00 2001
2 From: Kevin Hilman <khilman@ti.com>
3 Date: Wed, 23 Mar 2011 07:22:23 -0700
4 Subject: [PATCH 103/149] OMAP2+: powerdomain: add voltagedomain to struct powerdomain
6 Each powerdomain is associated with a voltage domain. Add an entry to
7 struct powerdomain where the enclosing voltagedomain can be
8 referenced.
10 Modeled after similar relationship between clockdomains and powerdomains.
12 Signed-off-by: Kevin Hilman <khilman@ti.com>
13 ---
14 arch/arm/mach-omap2/powerdomain.h | 7 +++++++
15 1 files changed, 7 insertions(+), 0 deletions(-)
17 diff --git a/arch/arm/mach-omap2/powerdomain.h b/arch/arm/mach-omap2/powerdomain.h
18 index d23d979..9ce920d 100644
19 --- a/arch/arm/mach-omap2/powerdomain.h
20 +++ b/arch/arm/mach-omap2/powerdomain.h
21 @@ -24,6 +24,8 @@
23 #include <plat/cpu.h>
25 +#include "voltage.h"
26 +
27 /* Powerdomain basic power states */
28 #define PWRDM_POWER_OFF 0x0
29 #define PWRDM_POWER_RET 0x1
30 @@ -78,6 +80,7 @@ struct powerdomain;
31 /**
32 * struct powerdomain - OMAP powerdomain
33 * @name: Powerdomain name
34 + * @voltdm: voltagedomain containing this powerdomain
35 * @omap_chip: represents the OMAP chip types containing this pwrdm
36 * @prcm_offs: the address offset from CM_BASE/PRM_BASE
37 * @prcm_partition: (OMAP4 only) the PRCM partition ID containing @prcm_offs
38 @@ -98,6 +101,10 @@ struct powerdomain;
39 */
40 struct powerdomain {
41 const char *name;
42 + union {
43 + const char *name;
44 + struct voltagedomain *ptr;
45 + } voltdm;
46 const struct omap_chip_id omap_chip;
47 const s16 prcm_offs;
48 const u8 pwrsts;
49 --
50 1.7.2.5