summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-11-08 10:32:58 +0800
committerYe Li <ye.li@nxp.com>2017-03-14 21:27:09 +0800
commitd0366265f09c86ce9801363d0fc74fda76696329 (patch)
treeaf4b38c94c038fc24ced7a9354094b74f448ce27 /include
parent205d1f74991ec04aad530985e8f008ed272259fe (diff)
downloadu-boot-imx-d0366265f09c86ce9801363d0fc74fda76696329.zip
u-boot-imx-d0366265f09c86ce9801363d0fc74fda76696329.tar.gz
u-boot-imx-d0366265f09c86ce9801363d0fc74fda76696329.tar.bz2
MLK-13440-1: fsl_usdhc: Add configuration parameter for using fixed 1.8V I/O
When using eMMC with 1.8V I/O, we have to set the VSELECT bit at this USDHC controller setup and init. The CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT has problem that it will apply to all USDHC controllers and it only set the 1.8V at init phase. So if user does not select to the eMMC device, the voltage on the I/O pins are not correct. This patch adds a parameter "vs18_enable" in fsl_esdhc_cfg structure and priv data, so each controller can have different settings. The default value is 0 for 3.3V, which is compatible with current codes. When setting this value to 1, at USDHC setup and init phase the driver will set the VSELECT bit. For DM driver, the vqmmc-supply property will be searched for current usdhc node. If the vqmmc-supply is set to 1800000 uV, the vs18_enable in priv data will be set to 1. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit ebd872f491af27c38a0698d226222ea5093c563c)
Diffstat (limited to 'include')
-rw-r--r--include/fsl_esdhc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h
index e15d3ae..ec3e3ad 100644
--- a/include/fsl_esdhc.h
+++ b/include/fsl_esdhc.h
@@ -178,6 +178,7 @@ struct fsl_esdhc_cfg {
u32 sdhc_clk;
u8 max_bus_width;
u8 wp_enable;
+ u8 vs18_enable; /*default use 1.8v if this var is not 0*/
struct mmc_config cfg;
};