blob: 8cf4b628d41a4559dbb11b67a3311283969c5e65 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Meng68a070b2017-08-15 22:41:58 -07002/*
3 * Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
Bin Meng68a070b2017-08-15 22:41:58 -07004 */
5
Simon Glass97589732020-05-10 11:40:02 -06006#include <init.h>
Bin Meng68a070b2017-08-15 22:41:58 -07007#include <asm/mrccache.h>
8#include <asm/post.h>
Tom Rinidec7ea02024-05-20 13:35:03 -06009#include <asm/u-boot-x86.h>
Bin Meng68a070b2017-08-15 22:41:58 -070010
11int arch_cpu_init(void)
12{
13 post_code(POST_CPU_INIT);
14
15 return x86_cpu_init_f();
16}
17
18int arch_misc_init(void)
19{
20#ifdef CONFIG_ENABLE_MRC_CACHE
21 /*
22 * We intend not to check any return value here, as even MRC cache
23 * is not saved successfully, it is not a severe error that will
24 * prevent system from continuing to boot.
25 */
26 mrccache_save();
27#endif
28
29 return 0;
30}