Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 257b980c authored by Fei Mao's avatar Fei Mao
Browse files

input: touchscreen: nt36xxx: enter deep sleep state



To avoid curret leakage, force touch IC to enter deep sleep state.

Change-Id: Icf6ef85806980e3881f0fabc3c0b47d49f0e6392
Signed-off-by: default avatarFei Mao <feim1@codeaurora.org>
parent 00f1edbb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1754,6 +1754,12 @@ static int32_t nvt_ts_suspend(struct device *dev)
	buf[0] = EVENT_MAP_HOST_CMD;
	buf[1] = 0x11;
	CTP_I2C_WRITE(ts->client, I2C_FW_Address, buf, 2);

	nvt_set_page(I2C_FW_Address, 0x11a50);
	buf[0] = 0x11a50 & 0xff;
	buf[1] = 0x11;
	CTP_I2C_WRITE(ts->client, I2C_FW_Address, buf, 2);

#endif // WAKEUP_GESTURE

	mutex_unlock(&ts->lock);