blob: 7a83b0600580be66b6a6f2f2ce862bfbf808cd1f [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>
7#include <asm/mrccache.h>
8#include <asm/post.h>
9
10int arch_cpu_init(void)
11{
12 post_code(POST_CPU_INIT);
13
14 return x86_cpu_init_f();
15}
16
17int 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}