power: supply: bq25703a: set low power mode when shutdown

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I0464d5cf36db9b5687247f4bf3bbbf367dd32894
This commit is contained in:
Chen Shunqing
2022-01-08 11:30:57 +08:00
committed by Tao Huang
parent 9f583cf19c
commit 31cc8b8472
+3
View File
@@ -2061,6 +2061,9 @@ static void bq25700_shutdown(struct i2c_client *client)
bq25700_field_write(charger, INPUT_VOLTAGE, vol_idx);
bq25700_field_write(charger, INPUT_CURRENT,
charger->init_data.input_current_sdp);
if (!bq25700_field_read(charger, AC_STAT))
bq25700_field_write(charger, EN_LWPWR, 1);
}
#ifdef CONFIG_PM_SLEEP