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