From: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
To: u-boot@lists.u-boot-project.org,
Quentin Schulz <u-boot@0leil.net>,
Jonas Karlman <jonas@kwiboo.se>
Cc: Tom Rini <trini@konsulko.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Johan Jonker <jbx6244@gmail.com>,
Massimo Pegorer <massimo.pegorer+oss@gmail.com>
Subject: [PATCH 0/7] mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER
Date: Tue, 01 Dec 2026 20:18:17 +0100 [thread overview]
Message-ID: <20261201-brom-v1-0-06f157a269fd@gmail.com> (raw)
This series stems from the observation that the ROCKCHIP_BROM_HELPER
config option lacks xPL phase context. There are 58 Rockchip board
configurations that have all three options: CONFIG_TPL CONFIG_SPL and
CONFIG_ROCKCHIP_BROM_HELPER. In this case, the ROCKCHIP_BROM_HELPER
code is built into both TPL and SPL too, even if it is really needed
in only one of them. The series splits ROCKCHIP_BROM_HELPER into
TPL_ROCKCHIP_BROM_HELPER and SPL_ROCKCHIP_BROM_HELPER, allowing
the back to BootROM code to be included just where needed.
The first five patches add some guards and forced selections to avoid
inconsistent configurations, and drop the SPL_BOOTROM_SUPPORT option
from defconfigs when unneeded. They do not introduce any functional
or binary change.
The sixth patch drops SPL_BOOTROM_SUPPORT dead code for the evb-px5 and
all PX30-based boards' SPL. The seventh patch drops ROCKCHIP_BROM_HELPER
dead code from SPL for some configurations related to the following SoCs:
PX30 (7/7) RK322X (1/1) RK3288 (7/14) RK3328(11/12) RK3368 (1/3) and
RK3399 (29/30).
The SPL size decreases by up to 522 bytes (PX30 SPL).
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
Massimo Pegorer (7):
mach-rockchip: px30: TPL_ROCKCHIP_COMMON_BOARD is not an option
mach-rockchip: rk3036: SPL_ROCKCHIP_COMMON_BOARD is not an option
mach-rockchip: px30: force TPL_ROCKCHIP_BACK_TO_BROM option selection
mach-rockchip: rk3036: force SPL_ROCKCHIP_BACK_TO_BROM option selection
mach-rockchip: Kconfig: Select xPL_BOOTROM_SUPPORT only if needed
configs: rockchip: Drop unneeded SPL_BOOTROM_SUPPORT option
mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER option
arch/arm/mach-rockchip/Kconfig | 20 ++++++++++++--------
arch/arm/mach-rockchip/Makefile | 4 ++--
configs/evb-px30_defconfig | 1 -
configs/evb-px5_defconfig | 1 -
configs/firefly-px30_defconfig | 1 -
configs/odroid-go2_defconfig | 1 -
configs/px30-core-ctouch2-of10-px30_defconfig | 1 -
configs/px30-core-ctouch2-px30_defconfig | 1 -
configs/px30-core-edimm2.2-px30_defconfig | 1 -
configs/ringneck-px30_defconfig | 1 -
10 files changed, 14 insertions(+), 18 deletions(-)
---
base-commit: 42680af8d15bb49201b298ab5f62058051c13083
change-id: 20261130-brom-4a0cdbce0463
Best regards,
--
Massimo Pegorer <massimo.pegorer+oss@gmail.com>
next reply other threads:[~2026-12-01 19:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 19:18 Massimo Pegorer [this message]
2026-12-01 19:18 ` [PATCH 1/7] mach-rockchip: px30: TPL_ROCKCHIP_COMMON_BOARD is not an option Massimo Pegorer
2026-12-01 19:18 ` [PATCH 2/7] mach-rockchip: rk3036: SPL_ROCKCHIP_COMMON_BOARD " Massimo Pegorer
2026-12-01 19:18 ` [PATCH 3/7] mach-rockchip: px30: force TPL_ROCKCHIP_BACK_TO_BROM option selection Massimo Pegorer
2026-12-01 19:18 ` [PATCH 4/7] mach-rockchip: rk3036: force SPL_ROCKCHIP_BACK_TO_BROM " Massimo Pegorer
2026-12-01 19:18 ` [PATCH 5/7] mach-rockchip: Kconfig: Select xPL_BOOTROM_SUPPORT only if needed Massimo Pegorer
2026-12-01 19:18 ` [PATCH 6/7] configs: rockchip: Drop unneeded SPL_BOOTROM_SUPPORT option Massimo Pegorer
2026-12-01 19:18 ` [PATCH 7/7] mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER option Massimo Pegorer
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=20261201-brom-v1-0-06f157a269fd@gmail.com \
--to=massimo.pegorer+oss@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jbx6244@gmail.com \
--cc=jonas@kwiboo.se \
--cc=trini@konsulko.com \
--cc=u-boot@0leil.net \
--cc=u-boot@lists.u-boot-project.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.