MLK-14707 fsl_esdhc: Fix eMMC 1.8v setting issue
authorYe Li <ye.li@nxp.com>
Thu, 20 Apr 2017 02:16:24 +0000 (10:16 +0800)
committerYe Li <ye.li@nxp.com>
Thu, 20 Apr 2017 05:31:41 +0000 (13:31 +0800)
commit2c101b1d4cccee4eb711110ea19cf92014cf56d8
tree81544611a2729250a03db681a92d27b9ef6e8080
parentf04444fa8a1c8c99fad5d8781324cff27892b9b6
MLK-14707 fsl_esdhc: Fix eMMC 1.8v setting issue

Current USDHC driver will reset VSELECT to 0 (3.3v) during mmc init,
then set to 1 for 1.8v eMMC I/O. When booting from eMMC, since ROM has
already set VSELECT to 1.8v before running the u-boot. This reset in
USDHC driver causes a short 2.2v pulse on CMD pin.

Fix this issue by not reset VSELECT to 0 when 1.8v flag is set.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit f01ebfdaa57b4c74ede32a6a40cf9cf9184ce049)
drivers/mmc/fsl_esdhc.c