Commit 44a0bab2 authored by Nick Dyer's avatar Nick Dyer Committed by Dmitry Torokhov

Input: atmel_mxt_ts - add bootloader addresses for new chips

Later chips (for example mXT1664S) different mappings for bootloader
addresses.  This means that we must look at the family ID to determine
which address to use.
Signed-off-by: default avatarNick Dyer <nick.dyer@itdev.co.uk>
Acked-by: default avatarBenson Leung <bleung@chromium.org>
Acked-by: default avatarYufeng Shen <miletus@chromium.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 385deb96
...@@ -387,6 +387,12 @@ static int mxt_lookup_bootloader_address(struct mxt_data *data) ...@@ -387,6 +387,12 @@ static int mxt_lookup_bootloader_address(struct mxt_data *data)
switch (appmode) { switch (appmode) {
case 0x4a: case 0x4a:
case 0x4b: case 0x4b:
/* Chips after 1664S use different scheme */
if (data->info.family_id >= 0xa2) {
bootloader = appmode - 0x24;
break;
}
/* Fall through for normal case */
case 0x4c: case 0x4c:
case 0x4d: case 0x4d:
case 0x5a: case 0x5a:
......
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