summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/elan_i2c.h
diff options
context:
space:
mode:
authorDuson Lin <dusonlin@emc.com.tw>2015-06-09 02:39:35 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-06-09 03:12:24 +0300
commit12018ac3d679d6a3c6c738ac805797fe4dd43912 (patch)
tree2ac3ab6688915aebb8c00bec0b543605b1dc48a9 /drivers/input/mouse/elan_i2c.h
parent85919a00e55f90e72405e707eb23c930b8d8db91 (diff)
downloadlinux-12018ac3d679d6a3c6c738ac805797fe4dd43912.tar.xz
Input: elan_i2c - add support for multi IC type and iap format
In order to support multiple IC types for i2c/smbus protocol, add get ic type command and use this data when checking firmware page count and signature address. Signed-off-by: Duson Lin <dusonlin@emc.com.tw> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/elan_i2c.h')
-rw-r--r--drivers/input/mouse/elan_i2c.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/input/mouse/elan_i2c.h b/drivers/input/mouse/elan_i2c.h
index 6d5f8a4c1748..ff622a1b0c2c 100644
--- a/drivers/input/mouse/elan_i2c.h
+++ b/drivers/input/mouse/elan_i2c.h
@@ -33,9 +33,7 @@
#define ETP_FW_IAP_PAGE_ERR (1 << 5)
#define ETP_FW_IAP_INTF_ERR (1 << 4)
#define ETP_FW_PAGE_SIZE 64
-#define ETP_FW_VAILDPAGE_COUNT 768
#define ETP_FW_SIGNATURE_SIZE 6
-#define ETP_FW_SIGNATURE_ADDRESS 0xBFFA
struct i2c_client;
struct completion;
@@ -58,7 +56,8 @@ struct elan_transport_ops {
bool max_baseliune, u8 *value);
int (*get_version)(struct i2c_client *client, bool iap, u8 *version);
- int (*get_sm_version)(struct i2c_client *client, u8 *version);
+ int (*get_sm_version)(struct i2c_client *client,
+ u8* ic_type, u8 *version);
int (*get_checksum)(struct i2c_client *client, bool iap, u16 *csum);
int (*get_product_id)(struct i2c_client *client, u8 *id);