[PATCH 4/4] configs: ax3005_scm3005: Enable eMMC support

Siu Ming Tong <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
Enable the Axiado SDHCI (MMC_SDHCI_AXIADO) and eMMC PHY
(PHY_AXIADO_EMMC) drivers on the SCM3005 board and store the
environment in MMC (CONFIG_ENV_IS_IN_MMC / CONFIG_ENV_OVERWRITE).
Increase CONFIG_SYS_MALLOC_LEN to 0x400000 to accommodate MMC
operations.

Signed-off-by: Siu Ming Tong <[email protected]>
---
 configs/ax3005_scm3005_defconfig | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/configs/ax3005_scm3005_defconfig b/configs/ax3005_scm3005_defconfig
index 5dd72d87220..0aa1ec85c36 100644
--- a/configs/ax3005_scm3005_defconfig
+++ b/configs/ax3005_scm3005_defconfig
@@ -5,7 +5,7 @@ CONFIG_TEXT_BASE=0x80000000
 CONFIG_SYS_MONITOR_BASE=0x80000000
 CONFIG_SYS_LOAD_ADDR=0x80100000
 CONFIG_SYS_MALLOC_F_LEN=0x8000
-CONFIG_SYS_MALLOC_LEN=0x20000
+CONFIG_SYS_MALLOC_LEN=0x400000
 CONFIG_SYS_BOOTM_LEN=0x20000000
 CONFIG_ENV_SIZE=0x10000
 CONFIG_ENV_OFFSET=0x5000
@@ -58,12 +58,18 @@ CONFIG_OF_CONTROL=y
 CONFIG_OF_SEPARATE=y
 CONFIG_DEFAULT_DEVICE_TREE="ax3005-scm3005"
 CONFIG_MULTI_DTB_FIT=y
-# CONFIG_ENV_IS_IN_MMC is not set
+CONFIG_ENV_IS_IN_MMC=y
+CONFIG_ENV_OVERWRITE=y
 CONFIG_DM_MMC=y
 # CONFIG_SUPPORT_EMMC_BOOT is not set
 CONFIG_MMC_IO_VOLTAGE=y
 CONFIG_MMC_UHS_SUPPORT=y
 CONFIG_MMC_HS400_SUPPORT=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_ADMA=y
+CONFIG_MMC_SDHCI_AXIADO=y
+CONFIG_PHY=y
+CONFIG_PHY_AXIADO_EMMC=y
 CONFIG_TARGET_SCM3005=y
 CONFIG_CLK=y
 CONFIG_LZMA=y

-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.