mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
x86: Add a way to detect running from coreboot
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>
This commit is contained in:
parent
33139a0bc7
commit
cfe7a1068b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue