Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Bin Meng | 68a070b | 2017-08-15 22:41:58 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com> |
Bin Meng | 68a070b | 2017-08-15 22:41:58 -0700 | [diff] [blame] | 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 | } |