From 32a9179f3adf6b36d85601ff6eba251dc6d207f9 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Mon, 12 Jun 2017 17:50:53 +0800 Subject: mmc: fsl_esdhc: introduce vs18_enable for 1.8V fix I/O When using eMMC with 1.8V I/O, the VSELECT bit need to be set in the USDHC controller when init. This patch adds a parameter "vs18_enable" in fsl_esdhc_cfg structure and priv data, so each controller can have different settings. We could not use CONFIG_SYS_FSL_ESDHC_FORCE_VSELECT, it 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. Signed-off-by: Peng Fan Cc: Jaehoon Chung Cc: York Sun Cc: Stefano Babic --- include/fsl_esdhc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/fsl_esdhc.h') diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h index 5550e00eab..02b362d5e3 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; int wp_enable; + int vs18_enable; /* Use 1.8V if set to 1 */ struct mmc_config cfg; }; -- cgit v1.2.3