cpu.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2016 Google, Inc
  4. * Written by Simon Glass <sjg@chromium.org>
  5. */
  6. #include <common.h>
  7. #include <debug_uart.h>
  8. /* Global declaration of gd */
  9. struct global_data *global_data_ptr;
  10. void arch_setup_gd(gd_t *new_gd)
  11. {
  12. global_data_ptr = new_gd;
  13. /*
  14. * TODO(sjg@chromium.org): For some reason U-Boot does not boot
  15. * without this line. It fails to start up U-Boot proper and instead
  16. * restarts SPL. Need to figure out why:
  17. *
  18. * U-Boot SPL 2017.01
  19. *
  20. * U-Boot SPL 2017.01
  21. * CPU: Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz
  22. * Trying to boot from SPIJumping to 64-bit U-Boot: Note many
  23. * features are missing
  24. *
  25. * U-Boot SPL 2017.01
  26. */
  27. #ifdef CONFIG_DEBUG_UART
  28. printch(' ');
  29. #endif
  30. }
  31. int cpu_has_64bit(void)
  32. {
  33. return true;
  34. }
  35. void enable_caches(void)
  36. {
  37. /* Not implemented */
  38. }
  39. void disable_caches(void)
  40. {
  41. /* Not implemented */
  42. }
  43. int dcache_status(void)
  44. {
  45. return true;
  46. }
  47. int x86_mp_init(void)
  48. {
  49. /* Not implemented */
  50. return 0;
  51. }
  52. int misc_init_r(void)
  53. {
  54. return 0;
  55. }
  56. int checkcpu(void)
  57. {
  58. return 0;
  59. }
  60. int print_cpuinfo(void)
  61. {
  62. return 0;
  63. }