diff options
| author | Anshul Dalal <anshuld@ti.com> | 2025-10-17 18:45:30 +0530 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2025-10-22 12:05:52 -0600 |
| commit | 16ffcff0283d2f10821bad7cbcf89003a86c0063 (patch) | |
| tree | 846cbd766e7610e8c973d3835caf692d35acf10a /board/starfive | |
| parent | 856480eef0a25dde339cce6d1889efdc836c6be8 (diff) | |
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>
Diffstat (limited to 'board/starfive')
| -rw-r--r-- | board/starfive/visionfive2/spl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c index 420a8cf8d91..48b034af305 100644 --- a/board/starfive/visionfive2/spl.c +++ b/board/starfive/visionfive2/spl.c @@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR; #define JH7110_CLK_CPU_ROOT_SHIFT 24 #define JH7110_CLK_CPU_ROOT_MASK GENMASK(29, 24) -void spl_perform_fixups(struct spl_image_info *spl_image) +void spl_perform_board_fixups(struct spl_image_info *spl_image) { /* Update the memory size which read from eeprom or DT */ if (spl_image->fdt_addr) |
