lkml.org 
[lkml]   [2013]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 31/53] Input: atmel_mxt_ts - Add bootloader addresses for new chips
    Date
    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. There is an additional complication: when we probe and we don't know the
    family ID yet, we need to try both possible addresses to find the bootloader.

    Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
    Acked-by: Benson Leung <bleung@chromium.org>
    ---
    drivers/input/touchscreen/atmel_mxt_ts.c | 6 ++++++
    1 file changed, 6 insertions(+)

    diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
    index 125fe2f..06b631b 100644
    --- a/drivers/input/touchscreen/atmel_mxt_ts.c
    +++ b/drivers/input/touchscreen/atmel_mxt_ts.c
    @@ -397,6 +397,12 @@ static int mxt_lookup_bootloader_address(struct mxt_data *data)
    switch (appmode) {
    case 0x4a:
    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 0x4d:
    case 0x5a:
    --
    1.7.10.4


    \
     
     \ /
      Last update: 2013-06-05 22:41    [W:4.176 / U:0.212 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site