xref: /openbmc/u-boot/arch/x86/cpu/braswell/braswell.c (revision 3e3b2b47)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
4  */
5 
6 #include <common.h>
7 #include <asm/mrccache.h>
8 #include <asm/post.h>
9 
10 int arch_cpu_init(void)
11 {
12 	post_code(POST_CPU_INIT);
13 
14 	return x86_cpu_init_f();
15 }
16 
17 int arch_misc_init(void)
18 {
19 #ifdef CONFIG_ENABLE_MRC_CACHE
20 	/*
21 	 * We intend not to check any return value here, as even MRC cache
22 	 * is not saved successfully, it is not a severe error that will
23 	 * prevent system from continuing to boot.
24 	 */
25 	mrccache_save();
26 #endif
27 
28 	return 0;
29 }
30