Star64_linux/include/linux/mmc
Arindam Nath cf2b5eea1e mmc: sdhci: add support for retuning mode 1
Host Controller v3.00 can support retuning modes 1,2 or 3 depending on
the bits 46-47 of the Capabilities register. Also, the timer count for
retuning is indicated by bits 40-43 of the same register. We initialize
timer_list for retuning the first time we execute tuning procedure. This
condition is indicated by SDHCI_NEEDS_RETUNING not being set. Since
retuning mode 1 sets a limit of 4MB on the maximum data length, we set
max_blk_count appropriately. Once the tuning timer expires, we set
SDHCI_NEEDS_RETUNING flag, and if the flag is set, we execute tuning
procedure before sending the next command. We need to restore mmc_request
structure after executing retuning procedure since host->mrq is used
inside the procedure to send CMD19. We also disable and re-enable this
flag during suspend and resume respectively, as per the spec v3.00.

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:48 -04:00
..
boot.h mmc: Add MMC_PROGRESS_* 2011-03-25 01:24:57 +09:00
card.h mmc: sd: report correct speed and capacity of uhs cards 2011-05-24 23:53:46 -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: sdhci: enable preset value after uhs initialization 2011-05-24 23:53:47 -04:00
ioctl.h mmc: core: Add mmc CMD+ACMD passthrough ioctl 2011-05-24 21:02:54 -04:00
Kbuild mmc: core: Add mmc CMD+ACMD passthrough ioctl 2011-05-24 21:02:54 -04:00
mmc.h mmc: sd: add support for tuning during uhs initialization 2011-05-24 23:53:46 -04:00
pm.h
sd.h mmc: sd: add support for signal voltage switch procedure 2011-05-24 21:04:38 -04:00
sdhci-pltfm.h
sdhci-spear.h
sdhci.h mmc: sdhci: add support for retuning mode 1 2011-05-24 23:53:48 -04:00
sdio.h
sdio_func.h
sdio_ids.h
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