summaryrefslogtreecommitdiff
path: root/include/linux/pm2301_charger.h
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-01-23 18:38:15 +0400
committerLee Jones <lee.jones@linaro.org>2013-01-23 18:39:19 +0400
commit3988043b0ee1104d4cca7c57bbc23b16ea798b6f (patch)
tree416daa30f175aa7bb2710919ea06753ae7260013 /include/linux/pm2301_charger.h
parente41f39ea2a0e9ba32d6896c2cc38bfec880a0937 (diff)
downloadlinux-3988043b0ee1104d4cca7c57bbc23b16ea798b6f.tar.xz
pm2301: LPN mode control support
The AC charger plug-in detection while booting causes I2C read failure if AC charger is not connected. Now the LPN pin is enabled for every PM2301 register access, which solves the issue. Signed-off-by: Rupesh Kumar <rupesh.kumar@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Marcus COOPER <marcus.xm.cooper@stericsson.com> Reviewed-by: Vijaya Kumar K-1 <vijay.kilari@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'include/linux/pm2301_charger.h')
-rw-r--r--include/linux/pm2301_charger.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pm2301_charger.h b/include/linux/pm2301_charger.h
index 16bb1d34b9d5..fc3f026922ae 100644
--- a/include/linux/pm2301_charger.h
+++ b/include/linux/pm2301_charger.h
@@ -49,6 +49,7 @@ struct pm2xxx_charger_platform_data {
int i2c_bus;
const char *label;
int irq_number;
+ unsigned int lpn_gpio;
int irq_type;
};