diff options
author | Simon Glass <sjg@chromium.org> | 2019-10-20 21:37:54 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-11-03 07:20:28 +0800 |
commit | ece3a4607010226082f2e08afa37419e01ad853f (patch) | |
tree | 0fb6a2b0d0d74fa85e0d027d693f505503f172b7 /arch/x86/include/asm/u-boot-x86.h | |
parent | 0ced70a0bb7a114226c831bf2058681011c0fb4e (diff) | |
download | u-boot-ece3a4607010226082f2e08afa37419e01ad853f.zip u-boot-ece3a4607010226082f2e08afa37419e01ad853f.tar.gz u-boot-ece3a4607010226082f2e08afa37419e01ad853f.tar.bz2 |
x86: Add a CPU init function for TPL
For TPL we only need to set up the features and identify the CPU to a
basic level. Add a function to handle that.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm/u-boot-x86.h')
-rw-r--r-- | arch/x86/include/asm/u-boot-x86.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/include/asm/u-boot-x86.h b/arch/x86/include/asm/u-boot-x86.h index 2466ad2..3e5d56d 100644 --- a/arch/x86/include/asm/u-boot-x86.h +++ b/arch/x86/include/asm/u-boot-x86.h @@ -34,6 +34,15 @@ int x86_cpu_init_f(void); */ int x86_cpu_reinit_f(void); +/** + * x86_cpu_init_tpl() - Do the minimum possible CPU init + * + * This just sets up the CPU features and figured out the identity + * + * @return 0 (indicating success, to mimic cpu_init_f()) + */ +int x86_cpu_init_tpl(void); + int cpu_init_f(void); void setup_gdt(struct global_data *id, u64 *gdt_addr); /* |