Home | History | Annotate | Download | only in vyasa-rk3288
      1 // SPDX-License-Identifier: GPL-2.0+
      2 /*
      3  * Copyright (C) 2017 Amarula Solutions
      4  */
      5 
      6 #include <common.h>
      7 
      8 #ifndef CONFIG_TPL_BUILD
      9 #include <spl.h>
     10 
     11 void 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 
     18 int 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
     27