diff options
| author | Padmarao Begari <[email protected]> | 2025-12-03 08:36:59 +0100 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2025-12-19 08:25:27 +0100 |
| commit | c8898f12d307db97ad2a18442273b7f0e2750c01 (patch) | |
| tree | 0c14de85814a43703e1f9c44fe0a7832eff028ca | |
| parent | 3af56e2e55fc03c9453d79374f9dd9f0fff6ec41 (diff) | |
board: xilinx: add SPL boot device support
Add board_boot_order() function and remove spl_boot_device()
function because it is called from weak board_boot_order().
Add support to U-Boot SPL for booting from RAM or SPI, as
configured in defconfig.
Signed-off-by: Padmarao Begari <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Link: https://lore.kernel.org/r/a1f26a9392128309a1affed28b14809845714c21.1764747417.git.michal.simek@amd.com
| -rw-r--r-- | board/xilinx/mbv/board.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/board/xilinx/mbv/board.c b/board/xilinx/mbv/board.c index ed3fe16af7b..2b0005955ca 100644 --- a/board/xilinx/mbv/board.c +++ b/board/xilinx/mbv/board.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ /* - * (C) Copyright 2023, Advanced Micro Devices, Inc. + * (C) Copyright 2023-2025, Advanced Micro Devices, Inc. * * Michal Simek <[email protected]> */ @@ -8,9 +8,15 @@ #include <spl.h> #ifdef CONFIG_SPL -u32 spl_boot_device(void) +void board_boot_order(u32 *spl_boot_list) { - /* RISC-V QEMU only supports RAM as SPL boot device */ - return BOOT_DEVICE_RAM; + u32 i = 0; + + if (CONFIG_IS_ENABLED(SPI_FLASH_SUPPORT)) + spl_boot_list[i++] = BOOT_DEVICE_SPI; + + if (CONFIG_IS_ENABLED(RAM_SUPPORT)) + spl_boot_list[i++] = BOOT_DEVICE_RAM; + } #endif |
