diff options
author | Simon Glass <sjg@chromium.org> | 2020-04-26 09:12:57 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-04-30 17:40:16 +0800 |
commit | ba974a0137edc86cff9727a83cf6be154ab18ef0 (patch) | |
tree | 10ee2839c6cbb0ebd1d3f8ee06ff906b5cab7947 /include/init.h | |
parent | f1f4438218d4d042fd36431dd5ff382c0a9f7a2c (diff) |
board: Add a gd flag for chain loading
When U-Boot is run from another boot loader, much of the low-level init
needs to be skipped.
Add a flag for this and adjust ll_boot_init() to use it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/init.h')
-rw-r--r-- | include/init.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/init.h b/include/init.h index 9ef88c966b..b5a167b6ed 100644 --- a/include/init.h +++ b/include/init.h @@ -20,7 +20,7 @@ struct global_data; #ifdef CONFIG_EFI_STUB #define ll_boot_init() false #else -#define ll_boot_init() true +#define ll_boot_init() (!(gd->flags & GD_FLG_SKIP_LL_INIT)) #endif /* |