diff options
author | Lee Jones <lee.jones@linaro.org> | 2013-01-23 09:38:15 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-01-23 09:39:19 -0500 |
commit | 3988043b0ee1104d4cca7c57bbc23b16ea798b6f (patch) | |
tree | 416daa30f175aa7bb2710919ea06753ae7260013 /drivers/power/pm2301_charger.h | |
parent | e41f39ea2a0e9ba32d6896c2cc38bfec880a0937 (diff) |
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 'drivers/power/pm2301_charger.h')
-rw-r--r-- | drivers/power/pm2301_charger.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/pm2301_charger.h b/drivers/power/pm2301_charger.h index 3531cc5a9056..e6319cdbc94f 100644 --- a/drivers/power/pm2301_charger.h +++ b/drivers/power/pm2301_charger.h | |||
@@ -493,6 +493,7 @@ struct pm2xxx_charger { | |||
493 | int old_vbat; | 493 | int old_vbat; |
494 | int failure_case; | 494 | int failure_case; |
495 | int failure_input_ovv; | 495 | int failure_input_ovv; |
496 | unsigned int lpn_pin; | ||
496 | struct pm2xxx_interrupts *pm2_int; | 497 | struct pm2xxx_interrupts *pm2_int; |
497 | struct ab8500_gpadc *gpadc; | 498 | struct ab8500_gpadc *gpadc; |
498 | struct regulator *regu; | 499 | struct regulator *regu; |