aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/twl-core.c
diff options
context:
space:
mode:
authorDanke Xie <d.xie@sta.samsung.com>2011-09-08 13:37:44 -0700
committerTodd Poynor <toddpoynor@google.com>2011-09-12 13:43:11 -0700
commit987583925df180b95e9191f8cd89e90986267202 (patch)
tree383e884346f0d158468c51dd9079db91d9ca650c /drivers/mfd/twl-core.c
parent91b1f0f81833b6cbec2de6bcd3d2247cc140265a (diff)
downloadkernel_samsung_espresso10-987583925df180b95e9191f8cd89e90986267202.zip
kernel_samsung_espresso10-987583925df180b95e9191f8cd89e90986267202.tar.gz
kernel_samsung_espresso10-987583925df180b95e9191f8cd89e90986267202.tar.bz2
MFD: TWL 6030: Add VLOW interrupt handler to shutdown device
This change adds an interrupt handler to shutdown device when battery voltage drops below TWL 6030 threshold VBATMIN_HI. Change-Id: I6556fd213ab0fafa9ae78c37c1a4672d1440c304 Signed-off-by: Danke Xie <d.xie@sta.samsung.com>
Diffstat (limited to 'drivers/mfd/twl-core.c')
-rw-r--r--drivers/mfd/twl-core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
index 194a674..ed11f61 100644
--- a/drivers/mfd/twl-core.c
+++ b/drivers/mfd/twl-core.c
@@ -126,6 +126,7 @@
/* Last - for index max*/
#define TWL4030_MODULE_LAST TWL4030_MODULE_SECURED_REG
+#define TWL6030_MODULE_LAST TWL6030_MODULE_SLAVE_RES
#define TWL_NUM_SLAVES 4
@@ -141,7 +142,7 @@
#define SUB_CHIP_ID2 2
#define SUB_CHIP_ID3 3
-#define TWL_MODULE_LAST TWL4030_MODULE_LAST
+#define TWL_MODULE_LAST TWL6030_MODULE_LAST
/* Base Address defns for twl4030_map[] */
@@ -187,6 +188,7 @@
#define TWL6030_BASEADD_MEM 0x0017
#define TWL6030_BASEADD_PM_MASTER 0x001F
#define TWL6030_BASEADD_PM_SLAVE_MISC 0x0030 /* PM_RECEIVER */
+#define TWL6030_BASEADD_PM_SLAVE_RES 0x00AD
#define TWL6030_BASEADD_PM_MISC 0x00E2
#define TWL6030_BASEADD_PM_PUPD 0x00F0
@@ -333,6 +335,7 @@ static struct twl_mapping twl6030_map[] = {
{ SUB_CHIP_ID0, TWL6030_BASEADD_RTC },
{ SUB_CHIP_ID0, TWL6030_BASEADD_MEM },
{ SUB_CHIP_ID1, TWL6025_BASEADD_CHARGER },
+ { SUB_CHIP_ID0, TWL6030_BASEADD_PM_SLAVE_RES },
};
/*----------------------------------------------------------------------*/