From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de, Stefano Babic <sbabic@denx.de>,
Tom Rini <trini@konsulko.com>
Cc: Lukasz Majewski <lukma@denx.de>
Subject: [PATCH v2 2/4] xea: defconfig: Update defconfig to support mtd partitions r/w by name
Date: Mon, 27 Dec 2021 11:46:39 +0100 [thread overview]
Message-ID: <20211227104641.428-2-lukma@denx.de> (raw)
In-Reply-To: <20211227104641.428-1-lukma@denx.de>
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 <lukma@denx.de>
---
(no changes since v1)
configs/imx28_xea_defconfig | 4 ++--
include/configs/xea.h | 4 ----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/configs/imx28_xea_defconfig b/configs/imx28_xea_defconfig
index 63ab8349cd..5566945183 100644
--- a/configs/imx28_xea_defconfig
+++ b/configs/imx28_xea_defconfig
@@ -60,8 +60,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
@@ -87,6 +85,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_MODE=0x0
@@ -96,6 +95,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
diff --git a/include/configs/xea.h b/include/configs/xea.h
index 5081cc8691..c3f25b5aa1 100644
--- a/include/configs/xea.h
+++ b/include/configs/xea.h
@@ -29,10 +29,6 @@
#define CONFIG_SYS_MMCSD_RAW_MODE_ARGS_SECTORS (SZ_32K / 0x200)
#define CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR (SZ_1M / 0x200)
-#ifndef CONFIG_SPL_BUILD
-#define CONFIG_SPI_FLASH_MTD
-#endif
-
/* Memory configuration */
#define PHYS_SDRAM_1 0x40000000 /* Base address */
#define PHYS_SDRAM_1_SIZE 0x10000000 /* Max 256 MB RAM */
--
2.20.1
next prev parent reply other threads:[~2021-12-27 10:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-27 10:46 [PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description Lukasz Majewski
2021-12-27 10:46 ` Lukasz Majewski [this message]
2022-02-19 13:07 ` [PATCH v2 2/4] xea: defconfig: Update defconfig to support mtd partitions r/w by name sbabic
2021-12-27 10:46 ` [PATCH v2 3/4] arm: xea: config: Provide special defconfig for a single binary u-boot Lukasz Majewski
2022-02-05 11:29 ` Stefano Babic
2022-02-05 16:43 ` sbabic
2021-12-27 10:46 ` [PATCH v2 4/4] arm: dts: Enable support for USB on XEA (imx28) board Lukasz Majewski
2022-02-05 16:40 ` sbabic
2021-12-27 12:43 ` [PATCH v2 1/4] xea: dts: Update the SPI-NOR flash memory partitions description Tom Rini
2021-12-27 13:20 ` Lukasz Majewski
2021-12-27 13:21 ` Tom Rini
2021-12-27 14:59 ` Lukasz Majewski
2021-12-27 15:00 ` Tom Rini
2022-02-05 16:44 ` sbabic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211227104641.428-2-lukma@denx.de \
--to=lukma@denx.de \
--cc=sbabic@denx.de \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox