blob: 8d17f44fd373445f3722f110917cad2643e82b85 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Anatolij Gustschin705bf372016-11-14 16:07:10 +01002/*
3 * Copyright (C) 2012 Altera Corporation <www.altera.com>
Anatolij Gustschin705bf372016-11-14 16:07:10 +01004 */
Anatolij Gustschin705bf372016-11-14 16:07:10 +01005#include <spl.h>
6
7void board_boot_order(u32 *spl_boot_list)
8{
9 spl_boot_list[0] = spl_boot_device();
10
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}