• Sudhakar Rajashekhara's avatar
    ARM: DaVinci: Fix for MMC/SD PIO mode on DA830/OMAP-L137 · 92afa75d
    Sudhakar Rajashekhara authored
    Fixes the PIO mode for MMC/SD on TI's DA830/OMAP-L137 architecture.
    
    On TI's DA830/OMAP-L137, the DMATRIG bit should be set for PIO
    transfers.  If MMC is being used for both PIO and EDMA based
    transfers, then it is likely that, an extra MMC EVENT is latched
    in the EDMA Event register even when just the CPU and MMC are in
    play. To properly switch from PIO to EDMA, clear any extra or
    unexpected event latched in the Event register, by doing a write
    to the corresponding bits in the ECR register.
    Signed-off-by: default avatarSudhakar Rajashekhara <sudhakar.raj@ti.com>
    92afa75d
davinci_mmc.c 34.9 KB