vyasa-rk3288.c 478 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2017 Amarula Solutions
  4. */
  5. #include <common.h>
  6. #ifndef CONFIG_TPL_BUILD
  7. #include <spl.h>
  8. void board_boot_order(u32 *spl_boot_list)
  9. {
  10. /* eMMC prior to sdcard. */
  11. spl_boot_list[0] = BOOT_DEVICE_MMC2;
  12. spl_boot_list[1] = BOOT_DEVICE_MMC1;
  13. }
  14. int spl_start_uboot(void)
  15. {
  16. /* break into full u-boot on 'c' */
  17. if (serial_tstc() && serial_getc() == 'c')
  18. return 1;
  19. return 0;
  20. }
  21. #endif