From: Michael Walle <mwalle@kernel.org>
To: "Marek Behún" <kabel@kernel.org>, "Tom Rini" <trini@konsulko.com>,
"Pramod Kumar" <pramod.kumar_1@nxp.com>,
"Vladimir Oltean" <olteanv@gmail.com>,
"Alison Wang" <alison.wang@nxp.com>,
"Tang Yuantian" <andy.tang@nxp.com>,
"Mingkai Hu" <mingkai.hu@nxp.com>,
"Priyanka Jain" <priyanka.jain@nxp.com>,
"Wasim Khan" <wasim.khan@nxp.com>,
"Meenakshi Aggarwal" <meenakshi.aggarwal@nxp.com>,
"TsiChung Liew" <Tsi-Chung.Liew@nxp.com>,
"Stefano Babic" <sbabic@nabladev.com>,
"Fabio Estevam" <festevam@gmail.com>,
"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>,
"Peng Fan" <peng.fan@nxp.com>,
"Shengzhou Liu" <Shengzhou.Liu@nxp.com>
Cc: Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>,
Jerome Forissier <jerome.forissier@arm.com>,
u-boot@lists.denx.de, Michael Walle <mwalle@kernel.org>
Subject: [PATCH 08/10] p2041rdb: support SDcard boot
Date: Wed, 29 Apr 2026 14:17:22 +0200 [thread overview]
Message-ID: <20260429121816.1026326-9-mwalle@kernel.org> (raw)
In-Reply-To: <20260429121816.1026326-1-mwalle@kernel.org>
The RCW was just supporting SPI boot. Add a second one for the SDcard
boot. While at it, use the same naming scheme as for the other NXP
boards.
Signed-off-by: Michael Walle <mwalle@kernel.org>
---
board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg | 11 +++++++++++
.../{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} | 0
configs/P2041RDB_SDCARD_defconfig | 3 ++-
configs/P2041RDB_SPIFLASH_defconfig | 2 +-
4 files changed, 14 insertions(+), 2 deletions(-)
create mode 100644 board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg
rename board/nxp/p2041rdb/{rcw_p2041rdb.cfg => p2041rdb_rcw_spi.cfg} (100%)
diff --git a/board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg b/board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg
new file mode 100644
index 00000000000..f22f3335e73
--- /dev/null
+++ b/board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg
@@ -0,0 +1,11 @@
+#
+# Default RCW for P2041RDB.
+#
+
+#PBL preamble and RCW header
+aa55aa55 010e0100
+#64 bytes RCW data
+12600000 00000000 241C0000 00000000
+649FA0C1 C3C02000 68000000 40000000
+00000000 00000000 00000000 D0030F07
+00000000 00000000 00000000 00000000
diff --git a/board/nxp/p2041rdb/rcw_p2041rdb.cfg b/board/nxp/p2041rdb/p2041rdb_rcw_spi.cfg
similarity index 100%
rename from board/nxp/p2041rdb/rcw_p2041rdb.cfg
rename to board/nxp/p2041rdb/p2041rdb_rcw_spi.cfg
diff --git a/configs/P2041RDB_SDCARD_defconfig b/configs/P2041RDB_SDCARD_defconfig
index ad04e2a1172..02ad42170c9 100644
--- a/configs/P2041RDB_SDCARD_defconfig
+++ b/configs/P2041RDB_SDCARD_defconfig
@@ -1,6 +1,7 @@
CONFIG_PPC=y
CONFIG_TEXT_BASE=0xFFF40000
CONFIG_SYS_MALLOC_LEN=0x100000
+CONFIG_SYS_MALLOC_F_LEN=0x600
CONFIG_SF_DEFAULT_SPEED=10000000
CONFIG_ENV_SIZE=0x2000
CONFIG_ENV_OFFSET=0xCF400
@@ -28,7 +29,7 @@ CONFIG_FIT=y
CONFIG_FIT_VERBOSE=y
CONFIG_RAMBOOT_PBL=y
CONFIG_SYS_FSL_PBL_PBI="board/nxp/p2041rdb/pbi.cfg"
-CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/rcw_p2041rdb.cfg"
+CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/p2041rdb_rcw_sd.cfg"
CONFIG_BOOTDELAY=10
CONFIG_OF_BOARD_SETUP=y
CONFIG_OF_STDOUT_VIA_ALIAS=y
diff --git a/configs/P2041RDB_SPIFLASH_defconfig b/configs/P2041RDB_SPIFLASH_defconfig
index 465b3ee7dc7..fc187eb311c 100644
--- a/configs/P2041RDB_SPIFLASH_defconfig
+++ b/configs/P2041RDB_SPIFLASH_defconfig
@@ -31,7 +31,7 @@ CONFIG_FIT_VERBOSE=y
CONFIG_RAMBOOT_PBL=y
CONFIG_SPIFLASH=y
CONFIG_SYS_FSL_PBL_PBI="board/nxp/p2041rdb/pbi.cfg"
-CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/rcw_p2041rdb.cfg"
+CONFIG_SYS_FSL_PBL_RCW="board/nxp/p2041rdb/p2041rdb_rcw_spi.cfg"
CONFIG_BOOTDELAY=10
CONFIG_OF_BOARD_SETUP=y
CONFIG_OF_STDOUT_VIA_ALIAS=y
--
2.47.3
next prev parent reply other threads:[~2026-04-29 12:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 12:17 [PATCH 00/10] Generic powerpc fixes and NXP board cleanup Michael Walle
2026-04-29 12:17 ` [PATCH 01/10] powerpc: fix call to cpu_init_r Michael Walle
2026-04-29 12:17 ` [PATCH 02/10] caam: don't write memory at 0 on PPC Michael Walle
2026-05-06 3:39 ` Peng Fan
2026-04-29 12:17 ` [PATCH 03/10] spi: fsl_espi: fix read transactions Michael Walle
2026-04-29 12:17 ` [PATCH 04/10] boards: remove dead fman code Michael Walle
2026-04-29 12:17 ` [PATCH 05/10] boards/nxp: remove board_eth_init() Michael Walle
2026-04-29 12:17 ` [PATCH 06/10] boards/nxp: remove empty fdt_fixup_board_enet() Michael Walle
2026-04-29 12:17 ` [PATCH 07/10] p2041rdb: use the upstream device tree Michael Walle
2026-04-29 12:17 ` Michael Walle [this message]
2026-04-29 12:17 ` [PATCH 09/10] p2041rdb: update README and fix typos Michael Walle
2026-04-29 15:28 ` Tom Rini
2026-04-30 7:24 ` Michael Walle
2026-04-29 12:17 ` [PATCH 10/10] p2041rdb: remove NAND defconfig Michael Walle
2026-05-06 4:35 ` [PATCH 00/10] Generic powerpc fixes and NXP board cleanup Peng Fan
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=20260429121816.1026326-9-mwalle@kernel.org \
--to=mwalle@kernel.org \
--cc=Shengzhou.Liu@nxp.com \
--cc=Tsi-Chung.Liew@nxp.com \
--cc=alison.wang@nxp.com \
--cc=andy.tang@nxp.com \
--cc=festevam@gmail.com \
--cc=jerome.forissier@arm.com \
--cc=kabel@kernel.org \
--cc=meenakshi.aggarwal@nxp.com \
--cc=mingkai.hu@nxp.com \
--cc=olteanv@gmail.com \
--cc=peng.fan@nxp.com \
--cc=pramod.kumar_1@nxp.com \
--cc=priyanka.jain@nxp.com \
--cc=sbabic@nabladev.com \
--cc=tomas.alvarez-vanoli@hitachienergy.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
--cc=wasim.khan@nxp.com \
/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