]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Fix sequence for I/O voltage in DDR mode for eMMC
authorChuanxiao.Dong <chuanxiao.dong@intel.com>
Fri, 15 Aug 2014 03:28:07 +0000 (11:28 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 11:59:24 +0000 (13:59 +0200)
commit1d6e10b15334f0ad249c3900b0f0da23a4ecb366
tree7030e3616f7b928a78db1ea32895dc8607e3798f
parent69e03b5bc4398537900c39434183ea1add0239bd
mmc: core: Fix sequence for I/O voltage in DDR mode for eMMC

Even (e)MMC card can support 3.3v to 1.2v vccq in DDR, but not all
host controller can support this, like some of the SDHCI host
which connect to an eMMC device. Some of these host controller
still needs to use 1.8v vccq for supporting DDR mode.

So the sequence will be:
if (host and device can both support 1.2v IO)
use 1.2v IO;
else if (host and device can both support 1.8v IO)
use 1.8v IO;
so if host and device can only support 3.3v IO, this is the last choice.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Yunpeng Gao <yunpeng.gao@intel.com>
Tested-by: Jean-Michel Hautbois <jhautbois@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c