u-boot/drivers/mmc
Igor Grinberg 0b03a931ab omap: hsmmc: assume cd gpio is active low
Switch the default CD GPIO polarity to active low.

The current hsmmc driver assumption that the CD GPIO is active high, but
in the real hardware, usually the opposite holds.
The usual SD card socket has a mechanical switch which is grounded as
soon as a card is inserted.
Of course there might be some board logic which inverts the signal, but
as far as current users are concerned, there is no such logic.

Current U-Boot users either not using the CD functionality, or have a
different way (e.g. external to SoC GPIO controller) for checking the
card presence.

This patch also brings the polarity assumption in line with the Linux
kernel and adds appropriate comments.

This patch also might spare issues once the TWL GPIO driver will be
converted to the DM.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Cc: Dmitry Lifshitz <lifshitz@compulab.co.il>
Reviewed-by: Tom Rini <trini@ti.com>
2014-11-06 11:04:41 -05: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: add missing include 2014-10-25 15:27:35 -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: cleanups 2014-10-06 17:34:39 +02:00
exynos_dw_mmc.c mmc: exynos_dw_mmc: enable the DDR mode 2014-05-16 14:54:26 +09:00
fsl_esdhc.c cosmetic: replace MIN, MAX with min, max 2014-09-24 18:30:29 -04:00
fsl_esdhc_spl.c driver: Add support of image load for MMC & SPI in SPL 2014-04-22 17:58:50 -07: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_mci: enable high speed mode support 2014-08-01 20:01:33 +03:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
kona_sdhci.c mmc: free allocated memory on initialization errors 2014-06-12 15:21:12 +03:00
Makefile mmc: s3c: Add SD driver 2014-08-01 19:24:34 +03:00
mmc.c mmc: Fix mmc bus width 2014-10-03 17:26:50 +03:00
mmc_private.h mmc: don't support write & erase for SPL builds 2013-09-20 18:58:55 +03:00
mmc_spi.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
mmc_write.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
mv_sdhci.c mmc: sdhci: return error when failed add_sdhci(). 2013-05-06 16:26:24 -05:00
mvebu_mmc.c arm: marvell: Move arch/kirkwood.h to arch/soc.h 2014-10-23 09:59:20 -04:00
mxcmmc.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
mxsmmc.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
omap_hsmmc.c omap: hsmmc: assume cd gpio is active low 2014-11-06 11:04:41 -05:00
pxa_mmc_gen.c mmc: Split mmc struct, rework mmc initialization (v2) 2014-03-24 12:58:56 +02:00
rpmb.c includes: move openssl headers to include/u-boot 2014-06-19 11:19:04 -04:00
s3c_sdi.c mmc: s3c: Add SD driver 2014-08-01 19:24:34 +03:00
s5p_sdhci.c mmc: s5p: set SD detection pin as input 2014-10-27 19:20:51 -06:00
sdhci.c sdhci: make local functions static 2014-10-25 07:02:02 -04:00
sh_mmcif.c mmc: sh_mmcif: Fix warning by unused variable 2014-04-02 12:55:48 +03:00
sh_mmcif.h mmc: sh_mmcif: add support for Renesas MMCIF 2011-07-15 20:29:21 -05:00
socfpga_dw_mmc.c arm: socfpga: mmc: Pick the clock from clock manager 2014-10-06 17:46:49 +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 dm: sunxi: Request card detect gpio 2014-11-05 13:10:13 +01:00
tegra_mmc.c tegra: make local functions static 2014-10-25 07:27:37 -04:00
zynq_sdhci.c mmc: zynq: Add OF initialization support 2014-03-04 09:27:35 -05:00