braswell.c 603 B

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