mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Modify Zinitix firmware version name
Modify Zinitix firmware version name, and modify firmware update process. Change-Id: I24aac107a73d8151d5ee20c90f2ce9b55cb44cd2 Signed-off-by: miaoyi <miaoyi2@motorola.com> Reviewed-on: https://gerrit.mot.com/2513766 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: <zhuwg1@motorola.com> Reviewed-by: Jichao Zou <zoujc@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
cf4cb96215
commit
2d74d85400
3 changed files with 17 additions and 9 deletions
|
|
@ -175,16 +175,18 @@ struct reg_ioctl {
|
|||
|
||||
#define BT541_TOUCH_MODE 0x0010
|
||||
#define BT541_CHIP_REVISION 0x0011
|
||||
#define BT541_FIRMWARE_VERSION 0x0012
|
||||
#define BT541_FIRMWARE_VERSION 0x0034
|
||||
|
||||
#define ZINITIX_USB_DETECT 0x116
|
||||
|
||||
#define BT541_MINOR_FW_VERSION 0x0121
|
||||
#define BT541_MINOR_FW_VERSION 0x0035
|
||||
|
||||
#define BT541_VENDOR_ID 0x001C
|
||||
#define BT541_HW_ID 0x0014
|
||||
|
||||
#define BT541_DATA_VERSION_REG 0x0013
|
||||
#define BT541_THIRD_FW_VERSION 0x0036
|
||||
|
||||
#define BT541_SUPPORTED_FINGER_NUM 0x0015
|
||||
#define BT541_EEPROM_INFO 0x0018
|
||||
#define BT541_INITIAL_TOUCH_MODE 0x0019
|
||||
|
|
@ -1776,12 +1778,16 @@ retry_init:
|
|||
(u8 *)&cap->fw_minor_version, 2) < 0)
|
||||
goto fail_init;
|
||||
|
||||
if (read_data(client, BT541_DATA_VERSION_REG,
|
||||
if (read_data(client, BT541_THIRD_FW_VERSION,
|
||||
(u8 *)&cap->fw_third_version, 2) < 0)
|
||||
goto fail_init;
|
||||
|
||||
if (read_data(client, BT541_DATA_VERSION_REG,
|
||||
(u8 *)&cap->reg_data_version, 2) < 0)
|
||||
goto fail_init;
|
||||
|
||||
zinitix_printk("fw_version = 0x%x, fw_minor_version = 0x%x, reg_data_version = 0x%x\n",
|
||||
cap->fw_version, cap->fw_minor_version, cap->reg_data_version);
|
||||
zinitix_printk("fw_version = 0x%x, fw_minor_version = 0x%x, fw_third_version = 0x%x, reg_data_version = 0x%x\n",
|
||||
cap->fw_version, cap->fw_minor_version, cap->fw_third_version, cap->reg_data_version);
|
||||
|
||||
#if TOUCH_ONESHOT_UPGRADE
|
||||
if ((checkMode == NULL) &&(ts_check_need_upgrade(info, cap->fw_version,
|
||||
|
|
@ -2364,8 +2370,8 @@ static irqreturn_t bt541_touch_work(int irq, void *data)
|
|||
input_report_abs(info->input_dev, ABS_MT_POSITION_X, x);
|
||||
input_report_abs(info->input_dev, ABS_MT_POSITION_Y, y);
|
||||
input_report_key(info->input_dev, BTN_TOUCH, 1);
|
||||
} else if (zinitix_bit_test(sub_status, SUB_BIT_UP) ||
|
||||
zinitix_bit_test(prev_sub_status, SUB_BIT_EXIST)) {
|
||||
} else if ((zinitix_bit_test(sub_status, SUB_BIT_UP) ||
|
||||
zinitix_bit_test(prev_sub_status, SUB_BIT_EXIST)) && info->finger_cnt1) {
|
||||
dev_info(&client->dev, "Finger [%02d] up ver0x%02x hw0x%02x mode0x%02x\n",
|
||||
i, info->cap_info.reg_data_version,
|
||||
info->cap_info.hw_id, m_optional_mode);
|
||||
|
|
|
|||
|
|
@ -200,6 +200,7 @@ struct capa_info {
|
|||
u16 ic_revision;
|
||||
u16 fw_version;
|
||||
u16 fw_minor_version;
|
||||
u16 fw_third_version;
|
||||
u16 reg_data_version;
|
||||
u16 threshold;
|
||||
u16 key_threshold;
|
||||
|
|
|
|||
|
|
@ -53,10 +53,11 @@ static int zinitix_ts_mmi_methods_get_config_id(struct device *dev, void *cdata)
|
|||
zinitix_printk("firmware_version = 0x%x, minor_fw_version = 0x%x, data_version_reg = 0x%x\n",
|
||||
cap->fw_version, cap->fw_minor_version, cap->reg_data_version);
|
||||
|
||||
return snprintf(TO_CHARP(cdata), TS_MMI_MAX_ID_LEN, "%02d%02d%02d",
|
||||
return snprintf(TO_CHARP(cdata), TS_MMI_MAX_ID_LEN, "%02d%02d%02d%02x",
|
||||
cap->fw_version,
|
||||
cap->fw_minor_version,
|
||||
cap->reg_data_version);
|
||||
cap->fw_third_version,
|
||||
le32_to_cpu(cap->reg_data_version));
|
||||
}
|
||||
|
||||
static int zinitix_ts_mmi_methods_get_bus_type(struct device *dev, void *idata)
|
||||
|
|
|
|||
Loading…
Reference in a new issue