• Mark Jackson's avatar
    ARM: OMAP: Clear GPMC bits when applying new setting. · c9fb8094
    Mark Jackson authored
    When setting the GPMC device type, make sure any previous
    bits are cleared down, before applying the new setting.
    
    For OMAP4+ devices MUXADDDATA is a 2-bit field (bits 9:8)
    where as for OMAP2/3 devices it was only a one bit field
    (bit 9). For OMAP2/3 devices bit 8 is reserved and the
    OMAP documentation says to write a 0 to this bit. So
    clearing bit 8 on OMAP2/3 devices should not be a problem.
    Hence update the code to handle both bits 8 and 9 for all
    devices.
    Signed-off-by: default avatarMark Jackson <mpfj@newflow.co.uk>
    [jon-hunter@ti.com: updated changelog]
    Signed-off-by: default avatarJon Hunter <jon-hunter@ti.com>
    c9fb8094
gpmc.c 37.9 KB