spl: split spl_board_fixups to arch/board specific
authorAnshul Dalal <anshuld@ti.com>
Fri, 17 Oct 2025 13:15:30 +0000 (18:45 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 22 Oct 2025 18:05:52 +0000 (12:05 -0600)
commit16ffcff0283d2f10821bad7cbcf89003a86c0063
tree846cbd766e7610e8c973d3835caf692d35acf10a
parent856480eef0a25dde339cce6d1889efdc836c6be8
spl: split spl_board_fixups to arch/board specific

The current spl_board_fixups API allows for modification of spl_image
before the SPL jumps to it. This can be used to modify the DT for the
next boot stage, however the current API only allows either the machine
arch or the board to use it.

This limits the utility of the API as there might be certain fixups that
should be applied to all boards sharing the same machine architecture
with others being board specific.

For TI's K3 specifically, this prevents us from performing architecture
level fixups since a lot of TI boards are already making use of the
spl_board_fixups API.

Therefore this patch splits the API into two to allow both board and the
architecture specific fixups. The order is kept as arch then board to
give board specific fixups the precedence.

Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Anshul Dalal <anshuld@ti.com>
Tested-by: Wadim Egorov <w.egorov@phytec.de>
20 files changed:
arch/arm/cpu/armv7m/cpu.c
arch/arm/mach-rockchip/spl-boot-order.c
arch/arm/mach-socfpga/spl_soc64.c
board/beagle/beagley-ai/beagley-ai.c
board/dhelectronics/dh_stm32mp1/board.c
board/phytec/phycore_am62x/phycore-am62x.c
board/phytec/phycore_am64x/phycore-am64x.c
board/renesas/sparrowhawk/sparrowhawk.c
board/starfive/visionfive2/spl.c
board/ti/am62ax/evm.c
board/ti/am62dx/evm.c
board/ti/am62px/evm.c
board/ti/am62x/evm.c
board/ti/am64x/evm.c
board/ti/j721e/evm.c
board/ti/j721s2/evm.c
board/ti/j722s/evm.c
board/ti/j784s4/evm.c
common/spl/spl.c
include/spl.h