drivers: synopsys: Fix synopsys MMC driver
There are some issues with synopsys MMC driver:
- CMD8 should not expect data (for SD)
- ACMD51 should expect data (Send SCR for SD)
- dw_prepare should not dictate size to be MMC_BLOCK_SIZE, block size is
now handled in the dw_prepare function
- after the CMD completes, when doing dw_read, we need to invalidate cache
and wait for the data transfer to complete
- Need to set FIFO threshold, otherwise DMA might never get the interrupt
to read or write

Signed-off-by: Tien Hock, Loh <tien.hock.loh@intel.com>
1 parent 1cf55ab commit 3d0f30bb544a6b4a0c4766a6c31169419db4090e
@Tien Hock, Loh Tien Hock, Loh authored on 12 Mar 2019
Showing 2 changed files
View
drivers/synopsys/emmc/dw_mmc.c
View
include/drivers/synopsys/dw_mmc.h