summaryrefslogtreecommitdiffstats
path: root/arch/x86/lib/fsp/fsp_common.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-03-28 10:27:30 -0600
committerTom Rini <trini@konsulko.com>2017-04-05 13:55:09 -0400
commit76d1d02fd280ef7ad63a97c3a80bd765bf5596fa (patch)
treeea7633ce30c7a60653b4da7cb8d40308c9f5ba6b /arch/x86/lib/fsp/fsp_common.c
parent8749fa6af3e94630eeb02bc3a45fe9bdcb8d3087 (diff)
downloadu-boot-76d1d02fd280ef7ad63a97c3a80bd765bf5596fa.tar.gz
u-boot-76d1d02fd280ef7ad63a97c3a80bd765bf5596fa.tar.xz
u-boot-76d1d02fd280ef7ad63a97c3a80bd765bf5596fa.zip
board_f: x86: Use checkcpu() for CPU init
At present we misuse print_cpuinfo() do so CPU init on x86. This is done because it is the next available call after the console is enabled. But several arches use checkcpu() instead. Despite the horrible name (which we can fix), it seems a better choice. Adjust the various x86 CPU implementations to move their init code into checkcpu() and use print_cpuinfo() only for printing CPU info. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'arch/x86/lib/fsp/fsp_common.c')
-rw-r--r--arch/x86/lib/fsp/fsp_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/lib/fsp/fsp_common.c b/arch/x86/lib/fsp/fsp_common.c
index cebf85ee5b..66a388d601 100644
--- a/arch/x86/lib/fsp/fsp_common.c
+++ b/arch/x86/lib/fsp/fsp_common.c
@@ -14,6 +14,11 @@
DECLARE_GLOBAL_DATA_PTR;
+int checkcpu(void)
+{
+ return 0;
+}
+
int print_cpuinfo(void)
{
post_code(POST_CPU_INFO);