Attach the eMMC to the second eSDHC controller of
the LX2160A.

defconfig:

 - CONFIG_FSL_ESDHC=y for the controller driver.
 - CONFIG_CMD_MMC=y to expose the mmc command at the prompt.
 - CONFIG_MMC_HS400_SUPPORT=y for the high speed.
 - CONFIG_SUPPORT_EMMC_RPMB=y to access the chip's replay
   protected memory block partition for secure storage.

Signed-off-by: Vincent Jardin <[email protected]>
---

 arch/arm/dts/fsl-lx2160a-nbxv3.dts | 8 ++++++++
 configs/nbxv3_tfa_defconfig        | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/arch/arm/dts/fsl-lx2160a-nbxv3.dts 
b/arch/arm/dts/fsl-lx2160a-nbxv3.dts
index fad6e3c292a..a7e9628d948 100644
--- a/arch/arm/dts/fsl-lx2160a-nbxv3.dts
+++ b/arch/arm/dts/fsl-lx2160a-nbxv3.dts
@@ -108,3 +108,11 @@
 &dspi2 {
        status = "okay";
 };
+
+&esdhc1 {
+       status = "okay";
+       bus-width = <8>;
+       non-removable;
+       mmc-hs200-1_8v;
+       mmc-hs400-1_8v;
+};
diff --git a/configs/nbxv3_tfa_defconfig b/configs/nbxv3_tfa_defconfig
index 6684fecf3a4..626f4181812 100644
--- a/configs/nbxv3_tfa_defconfig
+++ b/configs/nbxv3_tfa_defconfig
@@ -31,6 +31,7 @@ CONFIG_SYS_PBSIZE=532
 CONFIG_RESET_PHY_R=y
 CONFIG_CMDLINE_PS_SUPPORT=y
 CONFIG_CMD_HISTORY=y
+CONFIG_CMD_MMC=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_CONTROL=y
@@ -41,6 +42,9 @@ CONFIG_DDR_ECC=y
 CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
 CONFIG_SYS_FSL_DDR_INTLV_256B=y
 CONFIG_DM_I2C=y
+CONFIG_SUPPORT_EMMC_RPMB=y
+CONFIG_MMC_HS400_SUPPORT=y
+CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
-- 
2.43.0

Reply via email to