MLK-15950 input: egalax_ts: switch to i2c interface before wake up
authorHaibo Chen <haibo.chen@nxp.com>
Thu, 3 Aug 2017 09:02:42 +0000 (17:02 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:17 +0000 (15:36 -0500)
commit78562296535bbd78d75664ca6e51680a48eec677
treec7c35028a241ef9f0696a3379b9cba4878de352d
parent84a39dd458f629e941f9ae45bca10b722e6e1e81
MLK-15950 input: egalax_ts: switch to i2c interface before wake up

For HannStar (HSD100PXN1 Rev: 1-A00C11 F/W:0634) LVDS touch screen,
it has a special request for the EETI touch controller. The host
needs to trigger I2C event to device FW at booting first, and then
the FW can switch to I2C interface. Otherwise, the FW can’t  work
with I2C interface, and can't generate any interrupt when touch
the screen.

This patch send an I2C command before the device wake up, make sure
the device switch to I2C interface first.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
drivers/input/touchscreen/egalax_ts.c