sst-linux/include/linux/mmc
Jaehoon Chung 6e8201f57c mmc: core: add the capability for broken voltage
There is an understood mismatch between the voltage the host controller is
set to and the voltage supplied to the card by a fixed voltage regulator.
Teaching the driver to accept the mismatch is overly complicated.  Instead
just accept the regulator's voltage.

This patch adds MMC_CAP2_BROKEN_VOLTAGE.

If the voltage didn't satisfy between min_uV and max_uV, try to change
the voltage in core.c.  When changing the voltage, maybe use
regulator_set_voltage().

In regulator_set_voltage(), check the below condition.

	/* sanity check */
	if (!rdev->desc->ops->set_voltage &&
	    !rdev->desc->ops->set_voltage_sel) {
		ret = -EINVAL;
		goto out;
	}

If some board should use the fixed-regulator, always return -EINVAL.
Then, eMMC didn't initialize always.

So if use a fixed-regulator, we need to add the MMC_CAP2_BROKEN_VOLTAGE.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-13 20:39:01 -05:00
..
boot.h mmc: Standardize header file inclusion checks. 2011-07-20 17:20:48 -04:00
card.h mmc: core: HS200 mode support for eMMC 4.5 2012-01-12 15:17:15 -05:00
cd-gpio.h mmc: add a generic GPIO card-detect helper 2012-01-11 23:58:45 -05:00
core.h mmc: allow upper layers to know immediately if card has been removed 2012-01-11 23:58:43 -05:00
dw_mmc.h mmc: dw_mmc: Add more capabilities field 2012-01-11 23:58:44 -05:00
host.h mmc: core: add the capability for broken voltage 2012-02-13 20:39:01 -05:00
ioctl.h mmc: Standardize header file inclusion checks. 2011-07-20 17:20:48 -04:00
Kbuild mmc: core: Add mmc CMD+ACMD passthrough ioctl 2011-05-24 21:02:54 -04:00
mmc.h mmc: core: HS200 mode support for eMMC 4.5 2012-01-12 15:17:15 -05:00
pm.h mmc: Standardize header file inclusion checks. 2011-07-20 17:20:48 -04:00
sd.h mmc: Standardize header file inclusion checks. 2011-07-20 17:20:48 -04:00
sdhci-pci-data.h mmc: sdhci-pci: add platform data 2012-01-11 23:58:47 -05:00
sdhci-spear.h mmc: Standardize header file inclusion checks. 2011-07-20 17:20:48 -04:00
sdhci.h mmc: host: Adds support for eMMC 4.5 HS200 mode 2012-01-12 15:17:16 -05:00
sdio_func.h mmc: Standardize header file inclusion checks. 2011-07-20 17:20:48 -04:00
sdio_ids.h mmc: Standardize header file inclusion checks. 2011-07-20 17:20:48 -04:00
sdio.h mmc: sdio: support SDIO UHS cards 2012-01-11 23:58:41 -05:00
sh_mmcif.h mmc: sh_mmcif: simplify platform data 2011-10-26 16:32:09 -04:00
sh_mobile_sdhi.h mmc: sdhi: Allow named IRQs to use specific handlers 2011-10-26 15:43:36 -04:00
tmio.h mmc: sdhi: Add write16_hook 2011-07-20 17:20:57 -04:00