diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-06-12 08:36:17 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2018-06-17 21:16:04 +0800 |
commit | 3773c6a20a1cd736a340f1141a6d3d8ee3c2ddc6 (patch) | |
tree | 8d6bac3be3ef2770f74b18d03d206e2c6fed3158 /arch/x86 | |
parent | 4f1dacd43fcb5d4e97407df51b48dfde5e920078 (diff) | |
download | u-boot-3773c6a20a1cd736a340f1141a6d3d8ee3c2ddc6.tar.gz |
x86: efi: payload: Add arch_cpu_init()
This adds arch_cpu_init() to the payload codes, in preparation for
supporting a generic efi payload.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/efi/payload.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/x86/cpu/efi/payload.c b/arch/x86/cpu/efi/payload.c index 81fb8b5f72..9fd9f57776 100644 --- a/arch/x86/cpu/efi/payload.c +++ b/arch/x86/cpu/efi/payload.c @@ -5,11 +5,9 @@ */ #include <common.h> -#include <debug_uart.h> #include <efi.h> #include <errno.h> -#include <linux/err.h> -#include <linux/types.h> +#include <asm/post.h> DECLARE_GLOBAL_DATA_PTR; @@ -126,6 +124,13 @@ int dram_init_banksize(void) return 0; } +int arch_cpu_init(void) +{ + post_code(POST_CPU_INIT); + + return x86_cpu_init_f(); +} + int checkcpu(void) { return 0; |