OpenCloudOS-Kernel/include/linux/mmc
Arindam Nath d6d50a15a2 mmc: sd: add support for driver type selection
This patch adds support for setting driver strength during UHS-I
initialization procedure. Since UHS-I cards set S18A (bit 24) in
response to ACMD41, we use this as a base for UHS-I initialization.
We modify the parameter list of mmc_sd_get_cid() so that we can
save the ROCR from ACMD41 to check whether bit 24 is set.

We decide whether the Host Controller supports A, C, or D driver
type depending on the Capabilities register. Driver type B is
suported by default. We then set the appropriate driver type for
the card using CMD6 mode 1. As per Host Controller spec v3.00, we
set driver type for the host only if Preset Value Enable in the
Host Control2 register is not set. SDHCI_HOST_CONTROL has been
renamed to SDHCI_HOST_CONTROL1 to conform to the spec.

Tested by Zhangfei Gao with a Toshiba uhs card and general hs card,
on mmp2 in SDMA mode.

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Reviewed-by: Philip Rakity <prakity@marvell.com>
Tested-by: Philip Rakity <prakity@marvell.com>
Acked-by: Zhangfei Gao <zhangfei.gao@marvell.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
2011-05-24 23:53:24 -04:00
..
Kbuild mmc: core: Add mmc CMD+ACMD passthrough ioctl 2011-05-24 21:02:54 -04:00
boot.h mmc: Add MMC_PROGRESS_* 2011-03-25 01:24:57 +09:00
card.h mmc: sd: add support for driver type selection 2011-05-24 23:53:24 -04:00
core.h mmc: core: Add mmc CMD+ACMD passthrough ioctl 2011-05-24 21:02:54 -04:00
dw_mmc.h Fix common misspellings 2011-03-31 11:26:23 -03:00
host.h mmc: sd: add support for driver type selection 2011-05-24 23:53:24 -04:00
ioctl.h mmc: core: Add mmc CMD+ACMD passthrough ioctl 2011-05-24 21:02:54 -04:00
mmc.h mmc: MMC boot partitions support. 2011-05-24 21:01:21 -04:00
pm.h sdio: introduce API for special power management features 2010-03-06 11:26:36 -08:00
sd.h mmc: sd: add support for signal voltage switch procedure 2011-05-24 21:04:38 -04:00
sdhci-pltfm.h mmc: sdhci_pltfm: pass more data on custom init call 2010-10-23 21:11:22 +08:00
sdhci-spear.h sdhci-spear: ST SPEAr based SDHCI controller glue 2010-05-27 09:12:40 -07:00
sdhci.h mmc: sdhci: Fix read-only detection with JMicron 388 chip 2011-05-24 21:02:42 -04:00
sdio.h mmc: avoid getting CID on SDIO-only cards 2010-09-09 18:57:22 -07:00
sdio_func.h sdio: add new function for RAW (Read after Write) operation 2010-05-27 09:12:40 -07:00
sdio_ids.h Bluetooth: Support SDIO devices that are AMP controllers 2010-10-12 12:44:51 -03:00
sh_mmcif.h mmc: Add MMC_PROGRESS_* 2011-03-25 01:24:57 +09:00
sh_mobile_sdhi.h mmc: tmio: convert the SDHI MMC driver from MFD to a platform driver 2011-03-25 10:39:23 -04:00
tmio.h mmc: tmio_mmc: Move some defines into a shared header 2011-03-26 15:58:50 -04:00