From: Lukasz Majewski Date: Mon, 27 Dec 2021 10:46:39 +0000 (+0100) Subject: xea: defconfig: Update defconfig to support mtd partitions r/w by name X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=c4c3fa98ac032ed2bbf0a1cd2443d8645c4dc2af;p=u-boot.git xea: defconfig: Update defconfig to support mtd partitions r/w by name After this change it would be possible to use 'mtd' command to get access to XEA's SPI-NOR partitions by name (e.g. SPL), not by offsets. To enable this feature the CONFIG_SPI_FLASH_MTD needs to be defined in the Kconfig, not in xea.h. => mtd list => mtd read spl-boot-data1 ${loadaddr} 0x0 4 => md.l ${loadaddr} 1 Signed-off-by: Lukasz Majewski --- diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig index 8ded0a928e..4273b4b579 100644 --- a/configs/imx28_xea_defconfig +++ b/configs/imx28_xea_defconfig @@ -65,8 +65,6 @@ CONFIG_CMD_REGULATOR=y CONFIG_CMD_EXT4=y CONFIG_CMD_FS_GENERIC=y CONFIG_CMD_MTDPARTS=y -CONFIG_MTDIDS_DEFAULT="nor0=spi3.0" -CONFIG_MTDPARTS_DEFAULT="spi3.0:64k(SPL),448k(uboot),128k(envs),384k(unused1),4096k(kernel),8192k(swupdate),-(unused2)" CONFIG_DOS_PARTITION=y CONFIG_OF_CONTROL=y CONFIG_SPL_OF_CONTROL=y @@ -84,6 +82,7 @@ CONFIG_MXS_GPIO=y CONFIG_SUPPORT_EMMC_BOOT=y CONFIG_MMC_MXS=y CONFIG_MTD=y +CONFIG_DM_MTD=y CONFIG_DM_SPI_FLASH=y CONFIG_SF_DEFAULT_BUS=3 CONFIG_SF_DEFAULT_SPEED=40000000 @@ -92,6 +91,7 @@ CONFIG_SPI_FLASH_ISSI=y CONFIG_SPI_FLASH_SPANSION=y CONFIG_SPI_FLASH_STMICRO=y # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set +CONFIG_SPI_FLASH_MTD=y CONFIG_PHYLIB=y CONFIG_PHY_ADDR_ENABLE=y CONFIG_PHY_ADDR=1