mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
channel: input update ilitek touch hardreset
input update ilitek touch hardrese as vendor suggestion. Change-Id: Ie15e674650bdaf364d164ffcb439662cfa731dfb Signed-off-by: dengwei1 <dengwei1@motorola.com> Reviewed-on: https://gerrit.mot.com/1279215 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
aa6fcaba4a
commit
73d2dc3bab
3 changed files with 25 additions and 0 deletions
|
|
@ -507,7 +507,11 @@ void core_config_ic_resume(void)
|
|||
core_config_ice_mode_enable();
|
||||
core_config_set_watch_dog(false);
|
||||
mdelay(10);
|
||||
if (ipd->hardware_rst) {
|
||||
ilitek_platform_tp_hw_reset(true);
|
||||
} else {
|
||||
core_config_ic_reset();
|
||||
}
|
||||
}
|
||||
|
||||
core_fr_mode_control(&protocol->demo_mode);
|
||||
|
|
|
|||
|
|
@ -557,13 +557,26 @@ static int ilitek_platform_gpio(void)
|
|||
res = gpio_request(ipd->reset_gpio, "ILITEK_TP_RESET");
|
||||
if (res < 0) {
|
||||
ipio_err("Request RESET GPIO failed, res = %d\n", res);
|
||||
if (ipd->hardware_rst) {
|
||||
goto out2;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (ipd->hardware_rst) {
|
||||
ipio_err("Invalid RESET gpio: %d\n", ipd->reset_gpio);
|
||||
return -EBADR;
|
||||
}
|
||||
}
|
||||
gpio_direction_input(ipd->int_gpio);
|
||||
|
||||
out:
|
||||
return res;
|
||||
out2:
|
||||
if (gpio_is_valid(ipd->int_gpio))
|
||||
gpio_free(ipd->int_gpio);
|
||||
return res;
|
||||
}
|
||||
|
||||
int ilitek_platform_read_tp_info(void)
|
||||
|
|
@ -740,6 +753,13 @@ static int Ili_parse_dt(struct device *dev,
|
|||
else
|
||||
ipio_debug(DEBUG_BOOT,"pdata->MT_B_TYPE false ");
|
||||
|
||||
pdata->hardware_rst = of_property_read_bool(np,
|
||||
"ilitek,hardware_rst");
|
||||
if (pdata->hardware_rst)
|
||||
ipio_debug(DEBUG_BOOT,"pdata->hardware_rst ture ");
|
||||
else
|
||||
ipio_debug(DEBUG_BOOT,"pdata->hardware_rst false ");
|
||||
|
||||
pdata->REGULATOR_POWER_ON = of_property_read_bool(np,
|
||||
"ilitek,regulator_power_on");
|
||||
if (pdata->REGULATOR_POWER_ON)
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ struct ilitek_platform_data {
|
|||
bool suspended;
|
||||
|
||||
const char *TP_IC_TYPE;
|
||||
bool hardware_rst;
|
||||
bool MT_B_TYPE;
|
||||
bool REGULATOR_POWER_ON;
|
||||
bool BATTERY_CHECK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue