xref: /openbmc/u-boot/board/terasic/de1-soc/socfpga.c (revision eb5ba3ae)
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 
9 void board_boot_order(u32 *spl_boot_list)
10 {
11 	spl_boot_list[0] = spl_boot_device();
12 
13 	switch (spl_boot_list[0]) {
14 	case BOOT_DEVICE_MMC1:
15 		spl_boot_list[0] = BOOT_DEVICE_MMC1;
16 		spl_boot_list[1] = BOOT_DEVICE_UART;
17 		break;
18 	}
19 }
20