aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorAmit Kucheria <amit.kucheria@verdurent.com>2009-10-19 15:11:00 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2009-12-13 19:21:24 +0100
commitb4ead61e570d7b7bcf20a5a1733dd0bc37236c99 (patch)
treebbac1d65426eadb7d2b2208a55ead373cdd91790 /include/linux/i2c
parent890463f0ff2bc5c62470dba181a5362bf7a5b22e (diff)
downloadkernel_samsung_tuna-b4ead61e570d7b7bcf20a5a1733dd0bc37236c99.zip
kernel_samsung_tuna-b4ead61e570d7b7bcf20a5a1733dd0bc37236c99.tar.gz
kernel_samsung_tuna-b4ead61e570d7b7bcf20a5a1733dd0bc37236c99.tar.bz2
mfd: Add support for remapping twl4030-power power states
The <RESOURCE>_REMAP register allows configuration of the <RESOURCE> in case of a sleep or off transition. Allow this property of resources to be configured (through twl4030_resconfig) and add code to parse these values to program the registers accordingly. Signed-off-by: Amit Kucheria <amit.kucheria@verdurent.com> Cc: linux-omap@vger.kernel.org Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r--include/linux/i2c/twl4030.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/i2c/twl4030.h b/include/linux/i2c/twl4030.h
index 5306a75..e87cb27 100644
--- a/include/linux/i2c/twl4030.h
+++ b/include/linux/i2c/twl4030.h
@@ -250,6 +250,7 @@ int twl4030_i2c_read(u8 mod_no, u8 *value, u8 reg, unsigned num_bytes);
#define RES_TYPE_ALL 0x7
+/* Resource states */
#define RES_STATE_WRST 0xF
#define RES_STATE_ACTIVE 0xE
#define RES_STATE_SLEEP 0x8
@@ -391,6 +392,8 @@ struct twl4030_resconfig {
u8 devgroup; /* Processor group that Power resource belongs to */
u8 type; /* Power resource addressed, 6 / broadcast message */
u8 type2; /* Power resource addressed, 3 / broadcast message */
+ u8 remap_off; /* off state remapping */
+ u8 remap_sleep; /* sleep state remapping */
};
struct twl4030_power_data {