sc8541:enable adc when charger plugin

SC8541 ADC enable will cost extra current while standby.
Enable sc8541 adc when charger plug in.

Change-Id: Ib8993bbd2c7a806a60a91ed53be5e84abd43c877
Signed-off-by: Lei Chen <chenlei18@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2629332
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Lei Chen 2023-06-01 13:37:29 +08:00 • committed by Lei Chen
commit 24a58e0f57

View file

@ -283,7 +283,7 @@ static struct reg_default sc8541_reg_init_val[] = {
{BQ25980_MASK4, 0x00},
{BQ25980_MASK5, 0x00},
{BQ25980_ADC_CONTROL1, 0x80},//enable ADC_EN
{BQ25980_ADC_CONTROL1, 0x00},//disable ADC_EN as default
{BQ25980_ADC_CONTROL2, 0x06}, //0x26: enable vac1 vac2 adc and vout adc
};