valleyview.c 731 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <mmc.h>
  8. #include <pci_ids.h>
  9. #include <asm/irq.h>
  10. #include <asm/mrccache.h>
  11. #include <asm/post.h>
  12. #ifndef CONFIG_EFI_APP
  13. int arch_cpu_init(void)
  14. {
  15. post_code(POST_CPU_INIT);
  16. return x86_cpu_init_f();
  17. }
  18. int arch_misc_init(void)
  19. {
  20. if (!ll_boot_init())
  21. return 0;
  22. #ifdef CONFIG_ENABLE_MRC_CACHE
  23. /*
  24. * We intend not to check any return value here, as even MRC cache
  25. * is not saved successfully, it is not a severe error that will
  26. * prevent system from continuing to boot.
  27. */
  28. mrccache_save();
  29. #endif
  30. return 0;
  31. }
  32. #endif
  33. void reset_cpu(ulong addr)
  34. {
  35. /* cold reset */
  36. x86_full_reset();
  37. }