mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
focaltech_v2_mmi: keep rst high when config only for IDC
focaltech_v2_mmi: Keep rst high when gpio config only for IDC, because non-IDC will reset later, call fts_reset_proc. Change-Id: If09a888df649f235f298e7fc9c20d40517414ca7 Signed-off-by: wangyq13 <wangyq13@lenovo.com> Reviewed-on: https://gerrit.mot.com/2037778 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
fe6a6213c0
commit
d7f95e4ccd
1 changed files with 4 additions and 0 deletions
|
|
@ -1362,19 +1362,23 @@ static int fts_gpio_configure(struct fts_ts_data *data)
|
|||
goto err_irq_gpio_dir;
|
||||
}
|
||||
|
||||
#if (FTS_CHIP_IDC)
|
||||
ret = gpio_direction_output(data->pdata->reset_gpio, 1);
|
||||
if (ret) {
|
||||
FTS_ERROR("[GPIO]set_direction for reset gpio failed");
|
||||
goto err_reset_gpio_dir;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
FTS_FUNC_EXIT();
|
||||
return 0;
|
||||
|
||||
#if (FTS_CHIP_IDC)
|
||||
err_reset_gpio_dir:
|
||||
if (gpio_is_valid(data->pdata->reset_gpio))
|
||||
gpio_free(data->pdata->reset_gpio);
|
||||
#endif
|
||||
err_irq_gpio_dir:
|
||||
if (gpio_is_valid(data->pdata->irq_gpio))
|
||||
gpio_free(data->pdata->irq_gpio);
|
||||
|
|
|
|||
Loading…
Reference in a new issue