summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/coreboot/coreboot.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-06 13:20:06 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 07:24:09 +0100
commit8b37c7694f1eace82626d00fbfb85311ebf0d220 (patch)
treebd9bf3ee79b2ace78a1b7c86fec752cefb393826 /arch/x86/cpu/coreboot/coreboot.c
parent07387d1769c7cc29ff2402117148477263c4c5ce (diff)
x86: Use the standard arch_cpu_init() function
Instead of an x86-specific cpu_init_f() function, use the normal U-Boot one for this purpose. Also remove a useless/misleading comment. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/coreboot/coreboot.c')
-rw-r--r--arch/x86/cpu/coreboot/coreboot.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c
index e24f13afaf..4e1349f950 100644
--- a/arch/x86/cpu/coreboot/coreboot.c
+++ b/arch/x86/cpu/coreboot/coreboot.c
@@ -20,18 +20,17 @@
DECLARE_GLOBAL_DATA_PTR;
-/*
- * Miscellaneous platform dependent initializations
- */
-int cpu_init_f(void)
+int arch_cpu_init(void)
{
int ret = get_coreboot_info(&lib_sysinfo);
- if (ret != 0)
+ if (ret != 0) {
printf("Failed to parse coreboot tables.\n");
+ return ret;
+ }
timestamp_init();
- return ret;
+ return x86_cpu_init_f();
}
int board_early_init_f(void)