All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER
@ 2026-12-01 19:18 Massimo Pegorer
  2026-12-01 19:18 ` [PATCH 1/7] mach-rockchip: px30: TPL_ROCKCHIP_COMMON_BOARD is not an option Massimo Pegorer
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Massimo Pegorer @ 2026-12-01 19:18 UTC (permalink / raw)
  To: u-boot, Quentin Schulz, Jonas Karlman
  Cc: Tom Rini, Ilias Apalodimas, Johan Jonker, Massimo Pegorer

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>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-01 19:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:18 [PATCH 0/7] mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER Massimo Pegorer
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

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.