1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (c) 2016 Google, Inc 4 */ 5 6 #include <dm.h> 7 #include <errno.h> 8 #include <handoff.h> 9 #include <init.h> 10 #include <asm/cpu_common.h> 11 #include <asm/global_data.h> 12 #include <asm/intel_regs.h> 13 #include <asm/lapic.h> 14 #include <asm/lpc_common.h> 15 #include <asm/msr.h> 16 #include <asm/mtrr.h> 17 #include <asm/post.h> 18 #include <asm/microcode.h> 19 20 DECLARE_GLOBAL_DATA_PTR; 21 arch_cpu_init(void)22int arch_cpu_init(void) 23 { 24 int ret; 25 26 #if CONFIG_IS_ENABLED(HANDOFF) && IS_ENABLED(CONFIG_USE_HOB) 27 struct spl_handoff *ho = gd->spl_handoff; 28 29 gd->arch.hob_list = ho->arch.hob_list; 30 #endif 31 ret = x86_cpu_reinit_f(); 32 33 return ret; 34 } 35