projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33139a0
)
x86: Add a way to detect running from coreboot
author
Simon Glass
<sjg@chromium.org>
Sun, 26 Apr 2020 15:12:59 +0000
(09:12 -0600)
committer
Bin Meng
<bmeng.cn@gmail.com>
Thu, 30 Apr 2020 09:48:16 +0000
(17:48 +0800)
If U-Boot is running from coreboot we need to skip low-level init. Add
an way to detect this and to set the gd flag.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/i386/cpu.c
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/i386/cpu.c
b/arch/x86/cpu/i386/cpu.c
index cc20456c892ed643d79308e0f503e7b7e1d9a91f..0312a26bbbf5c719e690c32e89e1ea00c29359ed 100644
(file)
--- a/
arch/x86/cpu/i386/cpu.c
+++ b/
arch/x86/cpu/i386/cpu.c
@@
-476,6
+476,8
@@
int x86_cpu_reinit_f(void)
{
setup_identity();
setup_pci_ram_top();
+ if (locate_coreboot_table() >= 0)
+ gd->flags |= GD_FLG_SKIP_LL_INIT;
return 0;
}