blob: 2b509f529f18abe0dc7fcd35d3b31e6721261376 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Jagan Tekid55af072017-09-12 17:15:47 +05302/*
3 * Copyright (C) 2017 Amarula Solutions
Jagan Tekid55af072017-09-12 17:15:47 +05304 */
5
6#include <common.h>
Jagan Teki5d94ebe2017-09-27 23:03:13 +05307
8#ifndef CONFIG_TPL_BUILD
9#include <spl.h>
10
Jagan Teki1e84e442018-02-14 21:26:22 +053011void board_boot_order(u32 *spl_boot_list)
12{
13 /* eMMC prior to sdcard. */
14 spl_boot_list[0] = BOOT_DEVICE_MMC2;
15 spl_boot_list[1] = BOOT_DEVICE_MMC1;
16}
17
Jagan Teki5d94ebe2017-09-27 23:03:13 +053018int spl_start_uboot(void)
19{
20 /* break into full u-boot on 'c' */
21 if (serial_tstc() && serial_getc() == 'c')
22 return 1;
23
24 return 0;
25}
26#endif