dm: mmc: fsl_esdhc: handle vqmmc supply
authorPeng Fan <peng.fan@nxp.com>
Mon, 12 Jun 2017 09:50:54 +0000 (17:50 +0800)
committerStefano Babic <sbabic@denx.de>
Wed, 12 Jul 2017 07:44:22 +0000 (09:44 +0200)
commit4483b7eb8874cb78a1ebddfcd599bec00c87ab71
tree1552b4c3583aca6aa15d5fd9e4ae95e8ae08184e
parent32a9179f3adf6b36d85601ff6eba251dc6d207f9
dm: mmc: fsl_esdhc: handle vqmmc supply

Handle vqmmc supply. Some boards have a fixed I/O voltage
at 1.8V for emmc, so the usdhc also needs to be configured
as 1.8V by setting VSELECT bit. The vs18_enable is the one
that used to checking whether setting VSELECT or not in
the driver. So if vqmmc supply is 1.8V, set vs18_enable,
the driver will set VSELECT.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: York Sun <york.sun@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/fsl_esdhc.c