From f6c3a009e1fd5e39ed432c8adbc7156231ecb7b6 Mon Sep 17 00:00:00 2001 From: tinno61 Date: Mon, 27 Mar 2023 14:38:20 +0800 Subject: [PATCH] Bangkok modify for focal to no touch some focaltech tp no touch : modify timing of iovcc and vdd,first vdd,the second is iovcc.and issue is already fixed. Change-Id: I8170cb474d84c50ab068fecfda88679419710f5e Reviewed-on: https://gerrit.mot.com/2554227 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- .../touchscreen/focaltech_touch_v3/focaltech_core.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/input/touchscreen/focaltech_touch_v3/focaltech_core.c b/drivers/input/touchscreen/focaltech_touch_v3/focaltech_core.c index bcfb6915cc20..8112305adc1b 100644 --- a/drivers/input/touchscreen/focaltech_touch_v3/focaltech_core.c +++ b/drivers/input/touchscreen/focaltech_touch_v3/focaltech_core.c @@ -1532,6 +1532,10 @@ int fts_power_source_ctrl(struct fts_ts_data *ts_data, int enable) FTS_ERROR("enable vdd regulator failed,ret=%d", ret); } +#ifdef CONFIG_FTS_VDD_GPIO_CONTROL + fts_vdd_gpio_configure(ts_data); +#endif + if (!IS_ERR_OR_NULL(ts_data->vcc_i2c)) { ret = regulator_enable(ts_data->vcc_i2c); if (ret) { @@ -1539,13 +1543,6 @@ int fts_power_source_ctrl(struct fts_ts_data *ts_data, int enable) } } - -#ifdef CONFIG_FTS_VDD_GPIO_CONTROL - msleep(5); - fts_vdd_gpio_configure(ts_data); - msleep(3); -#endif - #if FTS_PINCTRL_EN fts_pinctrl_select_normal(ts_data); #endif