mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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:
parent
0ee2ecbf13
commit
f1d272a504
1 changed files with 11 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue