// SPDX-License-Identifier: GPL-2.0+
/*
- * (C) Copyright 2023, Advanced Micro Devices, Inc.
+ * (C) Copyright 2023-2025, Advanced Micro Devices, Inc.
*
* Michal Simek <michal.simek@amd.com>
*/
#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