socfpga.c 373 B

12345678910111213141516171819
  1. /*
  2. * Copyright (C) 2012 Altera Corporation <www.altera.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <spl.h>
  8. void board_boot_order(u32 *spl_boot_list)
  9. {
  10. spl_boot_list[0] = spl_boot_device();
  11. switch (spl_boot_list[0]) {
  12. case BOOT_DEVICE_MMC1:
  13. spl_boot_list[0] = BOOT_DEVICE_MMC1;
  14. spl_boot_list[1] = BOOT_DEVICE_UART;
  15. break;
  16. }
  17. }