diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2016-05-11 07:44:56 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2016-05-23 15:18:00 +0800 |
commit | 1e2f7b9e8e077cb6937204c305d554ef7a970be5 (patch) | |
tree | 344720ff67fb622fb644542e0232c3da3f55311b /arch/x86/cpu/coreboot/coreboot.c | |
parent | 91fc5bf652c1e959373cd21df4809a74d31e75fe (diff) | |
download | u-boot-imx-1e2f7b9e8e077cb6937204c305d554ef7a970be5.zip u-boot-imx-1e2f7b9e8e077cb6937204c305d554ef7a970be5.tar.gz u-boot-imx-1e2f7b9e8e077cb6937204c305d554ef7a970be5.tar.bz2 |
x86: Call board_final_cleanup() in last_stage_init()
At present board_final_cleanup() is called before booting a Linux
kernel. This actually needs to be done before booting anything,
like SeaBIOS, VxWorks or Windows.
Move the call to last_stage_init() instead.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/coreboot/coreboot.c')
-rw-r--r-- | arch/x86/cpu/coreboot/coreboot.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/arch/x86/cpu/coreboot/coreboot.c b/arch/x86/cpu/coreboot/coreboot.c index 845f86a..1b04203 100644 --- a/arch/x86/cpu/coreboot/coreboot.c +++ b/arch/x86/cpu/coreboot/coreboot.c @@ -39,15 +39,7 @@ int print_cpuinfo(void) return default_print_cpuinfo(); } -int last_stage_init(void) -{ - if (gd->flags & GD_FLG_COLD_BOOT) - timestamp_add_to_bootstage(); - - return 0; -} - -void board_final_cleanup(void) +static void board_final_cleanup(void) { /* * Un-cache the ROM so the kernel has one @@ -79,6 +71,16 @@ void board_final_cleanup(void) } } +int last_stage_init(void) +{ + if (gd->flags & GD_FLG_COLD_BOOT) + timestamp_add_to_bootstage(); + + board_final_cleanup(); + + return 0; +} + int misc_init_r(void) { return 0; |