Sec_mmi firmware update

TP:
solve the error that the firmware file could not
be found while firmware updating.

Change-Id: I0934c6b564e3208f16113981a7bd9a28da326385
Reviewed-on: https://gerrit.mot.com/1471544
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong 2019-12-13 14:57:44 +08:00 • committed by litong20
commit 4032b6e3d8

View file

@ -131,6 +131,22 @@ static void sec_mmi_ic_reset(struct sec_ts_data *ts, int mode)
static void sec_mmi_enable_touch(struct sec_ts_data *ts)
{
int ret;
unsigned char buffer[8];
ret = ts->sec_ts_i2c_read(ts, SEC_TS_READ_IMG_VERSION, buffer, sizeof(buffer));
if (ret < 0) {
input_err(true, &ts->client->dev,
"%s: failed to read fw version (%d)\n",
__func__, ret);
} else {
if (buffer[0] == 0x17) {
ts->device_id[3] = 0x7C;
input_info(true, &ts->client->dev,
"%s: set device_id[3] is 0x7C\n",
__func__, ret);
}
}
sec_ts_integrity_check(ts);
sec_ts_sense_on(ts);
dev_dbg(&ts->client->dev, "%s: touch sensing ready\n", __func__);