aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorAmit Kucheria <amit.kucheria@verdurent.com>2009-10-19 08:11:00 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2009-12-13 13:21:24 -0500
commitb4ead61e570d7b7bcf20a5a1733dd0bc37236c99 (patch)
treebbac1d65426eadb7d2b2208a55ead373cdd91790 /include/linux/i2c
parent890463f0ff2bc5c62470dba181a5362bf7a5b22e (diff)
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 5306a759cbde..e87cb270d8a1 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);
250 250
251#define RES_TYPE_ALL 0x7 251#define RES_TYPE_ALL 0x7
252 252
253/* Resource states */
253#define RES_STATE_WRST 0xF 254#define RES_STATE_WRST 0xF
254#define RES_STATE_ACTIVE 0xE 255#define RES_STATE_ACTIVE 0xE
255#define RES_STATE_SLEEP 0x8 256#define RES_STATE_SLEEP 0x8
@@ -391,6 +392,8 @@ struct twl4030_resconfig {
391 u8 devgroup; /* Processor group that Power resource belongs to */ 392 u8 devgroup; /* Processor group that Power resource belongs to */
392 u8 type; /* Power resource addressed, 6 / broadcast message */ 393 u8 type; /* Power resource addressed, 6 / broadcast message */
393 u8 type2; /* Power resource addressed, 3 / broadcast message */ 394 u8 type2; /* Power resource addressed, 3 / broadcast message */
395 u8 remap_off; /* off state remapping */
396 u8 remap_sleep; /* sleep state remapping */
394}; 397};
395 398
396struct twl4030_power_data { 399struct twl4030_power_data {