spl_bootrom.c 657 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2017 Theobroma Systems Design und Consulting GmH
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <spl.h>
  8. __weak void board_return_to_bootrom(void)
  9. {
  10. }
  11. static int spl_return_to_bootrom(struct spl_image_info *spl_image,
  12. struct spl_boot_device *bootdev)
  13. {
  14. /*
  15. * If the board implements a way to return to its ROM (with
  16. * the expectation that the next stage of will be booted by
  17. * the ROM), it will implement board_return_to_bootrom() and
  18. * should not return from it.
  19. */
  20. board_return_to_bootrom();
  21. return false;
  22. }
  23. SPL_LOAD_IMAGE_METHOD("BOOTROM", 0, BOOT_DEVICE_BOOTROM, spl_return_to_bootrom);