summaryrefslogtreecommitdiffstats
path: root/common/cmd_mmc_spi.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert cmd_usage() calls in common to use a return valueSimon Glass2012-03-061-2/+1
| | | | | | | | | Change all files in common/ to use CMD_RET_USAGE instead of calling cmd_usage() directly. I'm not completely sure about this patch since the code since impact is small (100 byte or so on ARM) and it might need splitting into smaller patches. But for now here it is. Signed-off-by: Simon Glass <sjg@chromium.org>
* mmc_spi: add mmc_init callThomas Chou2011-04-291-0/+1
| | | | | | | As Andy Fleming suggested, we can call mmc_init() in mmc_spi command. So that we don't need to run mmcinfo command next. Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
* mmc: add generic mmc spi driverThomas Chou2011-04-131-0/+88
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>
OpenPOWER on IntegriCloud