switch-linux/include/linux/mmc
Ulf Hansson 20f921bb01 mmc: core: Invent MMC_CAP_3_3V_DDR
According the JEDEC specification an eMMC card supporting 1.8V vccq in DDR
mode should also be capable of 3.3V. However, it's been reported that some
mmc hosts supports 3.3V, but not 1.8V.

Currently the mmc core implements an error handling when the host fails to
set 1.8V for vccq, by falling back to 3.3V. Unfortunate, this seems to be
insufficient for some mmc hosts. To enable these to use eMMC DDR mode let's
invent a new mmc cap, MMC_CAP_3_3V_DDR, which tells whether they support
the eMMC 3.3V DDR mode.

In case MMC_CAP_3_3V_DDR is set, but not MMC_CAP_1_8V_DDR, let's change to
remain on the 3.3V, as it's the default voltage level for vccq, set by the
earlier power up sequence.

As this change introduces MMC_CAP_3_3V_DDR, let's take the opportunity to
do some re-formatting of the related defines in the header file.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Tested-by: Jan Glauber <jglauber@cavium.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
2017-02-13 13:20:44 +01:00
..
card.h mmc: core: Move public functions from card.h to private headers 2017-02-13 13:20:24 +01:00
core.h mmc: core: Don't use extern declarations of public mmc functions 2017-02-13 13:20:25 +01:00
host.h mmc: core: Invent MMC_CAP_3_3V_DDR 2017-02-13 13:20:44 +01:00
mmc.h mmc: core: Remove unused struct _mmc_csd from public mmc.h header 2017-02-13 13:20:22 +01:00
pm.h
sd.h
sdhci-pci-data.h
sdio.h
sdio_func.h
sdio_ids.h brcmfmac: add support for bcm4339 chip with modalias sdio:c00v02D0d4339 2016-09-09 12:12:14 +03:00
sh_mmcif.h mmc: sh_mmcif: Remove unused clk_ctrl2_present from the platform data 2017-02-13 13:19:58 +01:00
slot-gpio.h mmc: core: First step in cleaning up public mmc header files 2017-02-13 13:20:19 +01:00