fsp_common.c 575 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright 2019 Google LLC
  4. * Written by Simon Glass <sjg@chromium.org>
  5. */
  6. #include <common.h>
  7. #include <init.h>
  8. #include <asm/fsp/fsp_support.h>
  9. int arch_fsp_init(void)
  10. {
  11. return 0;
  12. }
  13. void board_final_cleanup(void)
  14. {
  15. u32 status;
  16. /* TODO(sjg@chromium.org): This causes Linux to crash */
  17. return;
  18. /* call into FspNotify */
  19. debug("Calling into FSP (notify phase INIT_PHASE_END_FIRMWARE): ");
  20. status = fsp_notify(NULL, INIT_PHASE_END_FIRMWARE);
  21. if (status)
  22. debug("fail, error code %x\n", status);
  23. else
  24. debug("OK\n");
  25. }