Fix system crash when main touch uses LDOC13

Set regulator avdd load to 50mA,so when touch is active it can notify
the regualtor core to set the most efficient regulator operating mode
(HPM mode)for the new regulator loading.

Change-Id: Ie28564c6f5ff114cd99dd5742da1f88ddf3cbb45
Signed-off-by: zhuwg1 <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2210880
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
zhuwg1 2022-03-09 09:55:22 +08:00
commit f1d272a504

View file

@ -1369,6 +1369,17 @@ static int goodix_ts_power_init(struct goodix_ts_core *core_data)
core_data->avdd = NULL;
return ret;
}
ret = regulator_set_load(core_data->avdd, 50000);
if (ret) {
ts_err("set avdd load fail");
return ret;
}
ret = regulator_set_voltage(core_data->avdd, 3000000, 3000000);
if (ret) {
ts_err("set avdd voltage fail");
return ret;
}
} else {
ts_info("Avdd name is NULL");
}