From 42d008cccb6f177f2c0bb29879bfe56a2b10ab2f Mon Sep 17 00:00:00 2001 From: wingte50 Date: Tue, 11 Jan 2022 15:07:11 +0800 Subject: [PATCH] FPS: Modify the power-on sequence for focaltech After the VDD is powered on for more than 1ms , The RST is powered on Change-Id: I7c49dc6cbaab0a9dee0ae8642a9de13db971f51b Reviewed-on: https://gerrit.mot.com/2167042 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Reviewed-by: Lijun Chen Reviewed-by: Tao Sun Submit-Approved: Jira Key --- drivers/input/misc/focal_fps_mmi/plat-msm.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/input/misc/focal_fps_mmi/plat-msm.c b/drivers/input/misc/focal_fps_mmi/plat-msm.c index d60bad37d7bd..3bdf2debe2ef 100644 --- a/drivers/input/misc/focal_fps_mmi/plat-msm.c +++ b/drivers/input/misc/focal_fps_mmi/plat-msm.c @@ -96,11 +96,16 @@ int ff_ctl_init_pins(int *irq_num) FF_LOGI("init int pin."); err = pinctrl_select_state(g_context->pinctrl, g_context->pin_states[FF_PINCTRL_STATE_INT_ACT]); + ff_ctl_enable_power(true); + /* Initialize the RST pin. */ + pinctrl_select_state(g_context->pinctrl, g_context->pin_states[FF_PINCTRL_STATE_RST_CLR]); + + /* Delay for 10ms. */ + mdelay(10); + /* Initialize the RST pin. */ pinctrl_select_state(g_context->pinctrl, g_context->pin_states[FF_PINCTRL_STATE_RST_ACT]); - ff_ctl_enable_power(true); - FF_LOGV("'%s' leave.", __func__); return err; }