2 * Copyright (C) 2014, Bin Meng <bmeng.cn@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/fsp/fsp_support.h>
11 #include <asm/processor.h>
13 int arch_cpu_init(void)
15 post_code(POST_CPU_INIT);
16 #ifdef CONFIG_SYS_X86_TSC_TIMER
17 timer_set_base(rdtsc());
20 return x86_cpu_init_f();
23 int print_cpuinfo(void)
25 post_code(POST_CPU_INFO);
26 return default_print_cpuinfo();
29 void reset_cpu(ulong addr)
32 outb(0x06, PORT_RESET);
35 void board_final_cleanup(void)
39 /* call into FspNotify */
40 debug("Calling into FSP (notify phase INIT_PHASE_BOOT): ");
41 status = fsp_notify(NULL, INIT_PHASE_BOOT);
42 if (status != FSP_SUCCESS)
43 debug("fail, error code %x\n", status);