u-boot-brain/drivers/mmc
Faiz Abbas a851213920 mmc: am654_sdhci: Implement workaround for card detect
The 4 bit MMC controllers have an internal debounce for the SDCD line
with a debounce delay of 1 second. Therefore, after clocks to the IP are
enabled, software has to wait for this time before it can power on the
controller.

Add a deferred_probe() callback which polls on sdcd for a maximum of 2 seconds
before switching on power to the controller or (in the case of no card)
returning a ENOMEDIUM. This pushes the 1 second wait time to when the
card is actually needed rather than at every probe() making sure that
users who don't insert an SD card in the slot don't have to wait such a
long time.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
2020-03-09 08:33:16 +08:00
..
am654_sdhci.c mmc: am654_sdhci: Implement workaround for card detect 2020-03-09 08:33:16 +08:00
arm_pl180_mmci.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
arm_pl180_mmci.h
aspeed_sdhci.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
atmel_sdhci.c mmc: atmel_sdhci: Add sam9x60-sdhci compatibility string 2019-10-08 09:16:11 +03:00
bcm2835_sdhci.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
bcm2835_sdhost.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
bcmstb_sdhci.c
ca_dw_mmc.c mmc: ca_dw_mmc: add DesignWare based DM support for CAxxxx SoCs 2020-03-09 08:33:13 +08:00
davinci_mmc.c Revert "mmc: davinci: drop struct davinci_mmc_plat" 2020-01-04 09:33:33 -05:00
dw_mmc.c common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
exynos_dw_mmc.c
fsl_esdhc_imx.c mmc: Merge SD_LEGACY and MMC_LEGACY bus modes 2020-03-09 08:33:16 +08:00
fsl_esdhc_spl.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
fsl_esdhc.c mmc: fsl_esdhc: actually enable cache snooping on mpc830x 2020-02-19 21:21:42 +08:00
ftsdc010_mci.c
ftsdc010_mci.h
gen_atmel_mci.c
hi6220_dw_mmc.c
iproc_sdhci.c drivers: mmc: Add sdhci driver for Broadcom iProc platform 2019-10-10 10:59:48 +08:00
jz_mmc.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
Kconfig mmc: ca_dw_mmc: add DesignWare based DM support for CAxxxx SoCs 2020-03-09 08:33:13 +08:00
kona_sdhci.c
Makefile mmc: ca_dw_mmc: add DesignWare based DM support for CAxxxx SoCs 2020-03-09 08:33:13 +08:00
meson_gx_mmc.c common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
mmc_boot.c
mmc_legacy.c
mmc_private.h
mmc_spi.c dm: mmc_spi: Fix NULL pointer dereference in mmc_spi_bind() 2019-09-05 15:29:29 +08:00
mmc_write.c
mmc-uclass.c mmc: Add a deferred_probe() API 2020-03-09 08:33:15 +08:00
mmc.c mmc: Merge SD_LEGACY and MMC_LEGACY bus modes 2020-03-09 08:33:16 +08:00
msm_sdhci.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mtk-sd.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mv_sdhci.c
mvebu_mmc.c
mxcmmc.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
mxsmmc.c mmc: Replace printf with debug call for timeouts in the i.MX28 mxs driver 2019-10-08 16:36:36 +02:00
omap_hsmmc.c mmc: Merge SD_LEGACY and MMC_LEGACY bus modes 2020-03-09 08:33:16 +08:00
pci_mmc.c
pic32_sdhci.c
pxa_mmc_gen.c
renesas-sdhi.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
rockchip_dw_mmc.c rockchip: dwmmc: add handling for u-boot, spl-fifo-mode 2019-11-23 23:41:44 +08:00
rockchip_sdhci.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
rpmb.c drivers: mmc: rpmb: Use R1 response 2020-02-17 14:55:04 +08:00
s5p_sdhci.c mmc: s5p_sdhci: Read generic MMC properties from DT 2020-01-23 11:43:10 +09:00
sandbox_mmc.c sandbox: mmc: Fix up MMC emulator for valgrind 2019-10-08 13:57:39 +08:00
sdhci-cadence.c mmc: sdhci-cadence: send tune request twice to work around errata 2020-02-17 14:55:04 +08:00
sdhci.c sdhci: Add sdhci_deferred_probe() API 2020-03-09 08:33:16 +08:00
sh_mmcif.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sh_mmcif.h
sh_sdhi.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
snps_dw_mmc.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
socfpga_dw_mmc.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sti_sdhci.c
stm32_sdmmc2.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sunxi_mmc.c
tangier_sdhci.c
tegra_mmc.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
tmio-common.c dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
tmio-common.h mmc: tmio: sdhi: Add calibration tables 2019-11-27 16:56:46 +08:00
uniphier-sd.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
xenon_sdhci.c
zynq_sdhci.c mmc: Merge SD_LEGACY and MMC_LEGACY bus modes 2020-03-09 08:33:16 +08:00