diff options
author | Franck Jullien <franck.jullien@gmail.com> | 2011-11-24 21:46:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-25 12:38:29 +0100 |
commit | 2aad209b78fcd617ba89d4e29cac09b6948eace3 (patch) | |
tree | f0377ea4641fc0195b0012b18ccb49e6ff4e7abf /drivers/mci/Kconfig | |
parent | 52ef4af579d1755e0879ced30aa2038386d42c20 (diff) | |
download | barebox-2aad209b78fcd617ba89d4e29cac09b6948eace3.tar.gz barebox-2aad209b78fcd617ba89d4e29cac09b6948eace3.tar.xz |
mci: Add MCI over SPI support
This patch adds MMC over SPI support to mci-core.c and
mci_spi.c driver.
This driver is useful when SOC doesn't have built-in MCI
component. Tested with nios, 2Go SD-CARD and FAT file system.
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/Kconfig')
-rw-r--r-- | drivers/mci/Kconfig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig index 0d5a0e0814..641f278a86 100644 --- a/drivers/mci/Kconfig +++ b/drivers/mci/Kconfig @@ -80,4 +80,21 @@ config MCI_ATMEL Enable this entry to add support to read and write SD cards on a Atmel AT91. +config MCI_SPI + bool "MMC/SD over SPI" + help + Some systems access MMC/SD/SDIO cards using a SPI controller + instead of using a "native" MMC/SD/SDIO controller. This has a + disadvantage of being relatively high overhead, but a compensating + advantage of working on many systems without dedicated MMC/SD/SDIO + controllers. + +config MMC_SPI_CRC_ON + bool "Enable CRC protection for transfers" + select CRC7 + select CRC16 + depends on MCI_SPI + help + Enable CRC protection for transfers + endif |