• T
    ARM: OMAP: hwmod: wait for sysreset complete after enabling hwmod · 613ad0e9
    Tero Kristo 提交于
    When waking up from off-mode, some IP blocks are reset automatically by
    hardware. For this reason, software must wait until the reset has
    completed before attempting to access the IP block.
    
    This patch fixes for example the bug introduced by commit
    6c31b215 ("mmc: omap_hsmmc: remove access
    to SYSCONFIG register"), in which the MMC IP block is reset during
    off-mode entry, but the code expects the module to be already available
    during the execution of context restore.
    
    This version includes a fix from Kevin Hilman <khilman@ti.com> for
    GPIO problems on the 37xx EVM - thanks Kevin.
    Signed-off-by: NTero Kristo <t-kristo@ti.com>
    Cc: Paul Walmsley <paul@pwsan.com>
    Cc: Benoit Cousson <b-cousson@ti.com>
    Cc: Venkatraman S <svenkatr@ti.com>
    Tested-by: NKevin Hilman <khilman@ti.com>
    Cc: Kevin Hilman <khilman@ti.com>
    [paul@pwsan.com: moved softreset wait code into separate function; call
     from top of _enable_sysc() rather than the bottom; include fix from Kevin
     Hilman for GPIO sluggishness]
    Signed-off-by: NPaul Walmsley <paul@pwsan.com>
    613ad0e9
omap_hwmod.c 114.6 KB