mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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:
parent
ff06bd69eb
commit
4032b6e3d8
1 changed files with 16 additions and 0 deletions
|
|
@ -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__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue