aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/pm2301_charger.c
diff options
context:
space:
mode:
authorPer Forlin <per.forlin@stericsson.com>2012-07-05 16:52:55 +0200
committerLee Jones <lee.jones@linaro.org>2013-03-07 12:35:40 +0800
commit54fbbb6242247d06d21e21bbcf4ae8339bd75592 (patch)
tree9b3b57c2d7f0196a0e06b54066829c86ff38e58f /drivers/power/pm2301_charger.c
parent8891716e24d7b0f4b1c3b4fdff641bcb1fb282c4 (diff)
downloadvexpress-lsk-54fbbb6242247d06d21e21bbcf4ae8339bd75592.tar.gz
pm2301-charger: Force main charger detect
Force main charger detect in turn on status. Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com> Signed-off-by: Per Forlin <per.forlin@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com> Tested-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
Diffstat (limited to 'drivers/power/pm2301_charger.c')
-rw-r--r--drivers/power/pm2301_charger.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_charger.c
index 45ef3b9de6b..3f02636c48a 100644
--- a/drivers/power/pm2301_charger.c
+++ b/drivers/power/pm2301_charger.c
@@ -1067,6 +1067,8 @@ static int pm2xxx_wall_charger_probe(struct i2c_client *i2c_client,
pm2xxx_reg_read(pm2, PM2XXX_REG_INT2, &val);
pm2xxx_reg_read(pm2, PM2XXX_REG_INT4, &val);
pm2->ac.charger_connected = 1;
+ ab8500_override_turn_on_stat(~AB8500_POW_KEY_1_ON,
+ AB8500_MAIN_CH_DET);
pm2->ac_conn = true;
power_supply_changed(&pm2->ac_chg.psy);
sysfs_notify(&pm2->ac_chg.psy.dev->kobj, NULL, "present");