u-boot-brain/drivers/mmc
Wenyou Yang 79667b7b76 mmc: sdhci: Fix the SD clock stop sequence
According to the SDHC specification, stopping the SD Clock is by setting
the SD Clock Enable bit in the Clock Control register at 0, instead of
setting all bits at 0.

Before stopping the SD clock, we need to make sure all SD transactions
to complete, so add checking the CMD and DAT bits in the Presen State
register, before stopping the SD clock.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
2015-11-03 14:21:30 +01:00
..
arm_pl180_mmci.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
arm_pl180_mmci.h mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
bcm2835_sdhci.c mmc: bcm2835_sdhci: Restore original delay behavior 2015-06-25 17:04:37 -04:00
bfin_sdh.c mmc: set correct block size value in bfin sdh driver 2014-10-03 17:26:49 +03:00
davinci_mmc.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
dw_mmc.c mmc: dw_mmc: Increase timeout to 4 minutes (as in Linux kernel) 2015-09-28 11:03:56 -04:00
exynos_dw_mmc.c mmc: Support bypass mode with the get_mmc_clk() method 2015-09-02 21:28:23 -06:00
fsl_esdhc_spl.c driver: Add support of image load for MMC & SPI in SPL 2014-04-22 17:58:50 -07:00
fsl_esdhc.c mmc: fsl_esdhc: enable EVDD automatic control for SD/MMC Legacy Adapter Card 2015-11-02 08:50:29 -08:00
ftsdc010_mci.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
ftsdc021_sdhci.c mmc: add Faraday FTSDC021 SDHCI controller support 2013-12-08 14:23:05 +02:00
gen_atmel_mci.c mmc: atmel: Zap global 'initialized' variable 2015-11-01 22:02:15 +01:00
hi6220_dw_mmc.c mmc: hi6220_dw_mmc: Add hi6220 glue code for dw_mmc controller. 2015-08-12 20:48:01 -04:00
Kconfig sunxi: Use Kconfig CONFIG_MMC 2015-10-20 22:48:28 +02:00
kona_sdhci.c mmc: remove the MMC_MODE_HC flag 2015-05-05 12:29:36 +03:00
Makefile rockchip: Add an MMC driver 2015-09-02 21:28:24 -06:00
mmc_private.h mmc: fsl_esdhc: Add adapter card type identification support 2015-05-04 09:25:19 -07:00
mmc_spi.c mmc_spi: Big-endian support 2015-08-13 11:24:26 +03:00
mmc_write.c mmc_write.c: Make mmc_berase do 32bit safe 64bit math 2015-06-18 16:11:41 -04:00
mmc-uclass.c dm: mmc: Add an MMC uclass 2015-07-21 17:39:25 -06:00
mmc.c Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
mv_sdhci.c mmc: mv_sdhci: Configure the SDHCI MBUS bridge windows 2015-10-21 02:25:02 +02:00
mvebu_mmc.c mmc: remove the MMC_MODE_HC flag 2015-05-05 12:29:36 +03:00
mxcmmc.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
mxsmmc.c mmc: remove the MMC_MODE_HC flag 2015-05-05 12:29:36 +03:00
omap_hsmmc.c drivers: mmc: omap_hsmmc: convert driver to adopt device driver model 2015-10-22 14:43:57 -04:00
pci_mmc.c x86: mmc: Move common FSP functions into a common file 2015-02-06 12:07:36 -07:00
pxa_mmc_gen.c arm: pxa: mmc: clean-up include file order 2015-08-24 20:30:37 +02:00
rockchip_dw_mmc.c rockchip: Add an MMC driver 2015-09-02 21:28:24 -06:00
rpmb.c Move ALLOC_CACHE_ALIGN_BUFFER() to the new memalign.h header 2015-09-11 17:15:20 -04:00
s3c_sdi.c mmc: remove the MMC_MODE_HC flag 2015-05-05 12:29:36 +03:00
s5p_sdhci.c exynos: more debug and cleanup in do_sdhci_init() 2015-10-13 20:22:28 +09:00
sandbox_mmc.c dm: test: Add a test for the mmc uclass 2015-07-21 17:39:32 -06:00
sdhci.c mmc: sdhci: Fix the SD clock stop sequence 2015-11-03 14:21:30 +01:00
sh_mmcif.c mmc: remove the MMC_MODE_HC flag 2015-05-05 12:29:36 +03:00
sh_mmcif.h mmc: sh_mmcif: Add support rmobile 2014-12-05 11:16:22 +09:00
sh_sdhi.c mmc: rmobile: Add SDHC support for Renesas rmobile ARM SoC 2015-01-19 16:24:25 +02:00
socfpga_dw_mmc.c mmc: dw_mmc: Probe the MMC from OF 2015-09-04 11:54:20 +02:00
spear_sdhci.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sunxi_mmc.c sunxi: mmc: Fix clk-delay settings 2015-09-29 11:50:07 +02:00
tegra_mmc.c of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
zynq_sdhci.c of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00