Commit 22ef28b4 authored by duson's avatar duson Committed by Dmitry Torokhov

Input: elan_i2c - add all valid ic type for i2c/smbus

Signed-off-by: default avatarDuson Lin <dusonlin@emc.com.tw>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d3b367bc
...@@ -98,16 +98,25 @@ static int elan_get_fwinfo(u8 iap_version, u16 *validpage_count, ...@@ -98,16 +98,25 @@ static int elan_get_fwinfo(u8 iap_version, u16 *validpage_count,
u16 *signature_address) u16 *signature_address)
{ {
switch (iap_version) { switch (iap_version) {
case 0x00:
case 0x06:
case 0x08: case 0x08:
*validpage_count = 512; *validpage_count = 512;
break; break;
case 0x09:
case 0x03: case 0x03:
case 0x07:
case 0x09:
case 0x0A:
case 0x0B:
case 0x0C:
*validpage_count = 768; *validpage_count = 768;
break; break;
case 0x0D: case 0x0D:
*validpage_count = 896; *validpage_count = 896;
break; break;
case 0x0E:
*validpage_count = 640;
break;
default: default:
/* unknown ic type clear value */ /* unknown ic type clear value */
*validpage_count = 0; *validpage_count = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment