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: <leiyun@wingtech.com>
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wingte50 2022-01-11 15:07:11 +08:00 • committed by leiyun
commit 42d008cccb

View file

@ -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;
}