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