diff options
| author | Anshul Dalal <[email protected]> | 2025-10-17 18:45:30 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-10-22 12:05:52 -0600 |
| commit | 16ffcff0283d2f10821bad7cbcf89003a86c0063 (patch) | |
| tree | 846cbd766e7610e8c973d3835caf692d35acf10a /include/spl.h | |
| 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 <[email protected]>
Signed-off-by: Anshul Dalal <[email protected]>
Tested-by: Wadim Egorov <[email protected]>
Diffstat (limited to 'include/spl.h')
| -rw-r--r-- | include/spl.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/spl.h b/include/spl.h index 7c10c7f792e..cf45d411ecb 100644 --- a/include/spl.h +++ b/include/spl.h @@ -1116,10 +1116,16 @@ int board_return_to_bootrom(struct spl_image_info *spl_image, ulong board_spl_fit_size_align(ulong size); /** - * spl_perform_fixups() - arch/board-specific callback before processing - * the boot-payload + * spl_perform_arch_fixups() - arch specific callback before processing the + * boot-payload */ -void spl_perform_fixups(struct spl_image_info *spl_image); +void spl_perform_arch_fixups(struct spl_image_info *spl_image); + +/** + * spl_perform_board_fixups() - board specific callback before processing the + * boot-payload + */ +void spl_perform_board_fixups(struct spl_image_info *spl_image); /* * spl_get_load_buffer() - get buffer for loading partial image data |
