mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER
Get series with b4
b4 am [email protected] change-id 20261130-brom-4a0cdbce0463Versions newest first
- v1 Latest7 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | mach-rockchip: px30: TPL_ROCKCHIP_COMMON_BOARD is not an optionarch/ | +1 | 0 replies | |
| 2/7 | mach-rockchip: rk3036: SPL_ROCKCHIP_COMMON_BOARD is not an optionarch/ | +1 | 0 replies | |
| 3/7 | mach-rockchip: px30: force TPL_ROCKCHIP_BACK_TO_BROM option selectionarch/ | +1 | 0 replies | |
| 4/7 | mach-rockchip: rk3036: force SPL_ROCKCHIP_BACK_TO_BROM option selectionarch/ | +1 | 0 replies | |
| 5/7 | mach-rockchip: Kconfig: Select xPL_BOOTROM_SUPPORT only if neededarch/ | +2 | 0 replies | |
| 6/7 | configs: rockchip: Drop unneeded SPL_BOOTROM_SUPPORT optionconfigs/ configs/ configs/ +5 more | +0 | 0 replies | |
| 7/7 | mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER optionarch/ arch/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] mach-rockchip: Add xPL phase context to ROCKCHIP_BROM_HELPER
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).
---
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,
Signature · 1 line
Massimo Pegorer <[email protected]>