blob: 3345049993d6f301465ccb9bc360909c7068db03 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Bin Mengde9ac9a2017-08-15 22:41:58 -07002/*
3 * Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>
Bin Mengde9ac9a2017-08-15 22:41:58 -07004 */
5
6#include <common.h>
Simon Glass691d7192020-05-10 11:40:02 -06007#include <init.h>
Bin Mengde9ac9a2017-08-15 22:41:58 -07008#include <asm/mrccache.h>
9#include <asm/post.h>
10
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}