mmc: add generic mmc spi driver
This patch supports mmc/sd card with spi interface. It is based on the generic mmc framework. It works with SDHC and supports multi blocks read/write. The crc checksum on data packet is enabled with the def, There is a subcomamnd "mmc_spi" to setup spi bus and cs at run time. Signed-off-by:Thomas Chou <thomas@wytron.com.tw> Signed-off-by:
Andy Fleming <afleming@freescale.com>
Showing
- common/Makefile 1 addition, 0 deletionscommon/Makefile
- common/cmd_mmc_spi.c 88 additions, 0 deletionscommon/cmd_mmc_spi.c
- drivers/mmc/Makefile 1 addition, 0 deletionsdrivers/mmc/Makefile
- drivers/mmc/mmc.c 73 additions, 20 deletionsdrivers/mmc/mmc.c
- drivers/mmc/mmc_spi.c 280 additions, 0 deletionsdrivers/mmc/mmc_spi.c
- include/mmc.h 5 additions, 0 deletionsinclude/mmc.h
Loading
Please register or sign in to comment