Jagan Teki | d55af07 | 2017-09-12 17:15:47 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 Amarula Solutions |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Jagan Teki | 5d94ebe | 2017-09-27 23:03:13 +0530 | [diff] [blame] | 8 | |
| 9 | #ifndef CONFIG_TPL_BUILD |
| 10 | #include <spl.h> |
| 11 | |
Jagan Teki | 1e84e44 | 2018-02-14 21:26:22 +0530 | [diff] [blame^] | 12 | void board_boot_order(u32 *spl_boot_list) |
| 13 | { |
| 14 | /* eMMC prior to sdcard. */ |
| 15 | spl_boot_list[0] = BOOT_DEVICE_MMC2; |
| 16 | spl_boot_list[1] = BOOT_DEVICE_MMC1; |
| 17 | } |
| 18 | |
Jagan Teki | 5d94ebe | 2017-09-27 23:03:13 +0530 | [diff] [blame] | 19 | int spl_start_uboot(void) |
| 20 | { |
| 21 | /* break into full u-boot on 'c' */ |
| 22 | if (serial_tstc() && serial_getc() == 'c') |
| 23 | return 1; |
| 24 | |
| 25 | return 0; |
| 26 | } |
| 27 | #endif |