mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
Set touch reset and interrupt pin
Set touch reset and interrupt pin to low after touch IC powered off to reduce power consumption. Change-Id: I9befe0b38669af4085d268e3564d966ee16bfada Signed-off-by: Wenge Zhu <zhuwg1@motorola.com> Reviewed-on: https://gerrit.mot.com/2637539 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng <wengjun1@motorola.com> Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
bf239e4ebd
commit
c0990aa3fe
1 changed files with 5 additions and 0 deletions
|
|
@ -1593,6 +1593,11 @@ int fts_power_source_ctrl(struct fts_ts_data *ts_data, int enable)
|
|||
fts_pinctrl_select_suspend(ts_data);
|
||||
}
|
||||
#endif
|
||||
if (gpio_is_valid(ts_data->pdata->reset_gpio)) {
|
||||
gpio_direction_output(ts_data->pdata->reset_gpio, 0);
|
||||
FTS_INFO("Set gpio_reset to 0 success");
|
||||
}
|
||||
|
||||
ts_data->power_disabled = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue