mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-03 10:17:21 +00:00
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>
This commit is contained in:
parent
f1f4438218
commit
ba974a0137
2 changed files with 2 additions and 1 deletions
|
@ -166,5 +166,6 @@ typedef struct global_data {
|
||||||
#define GD_FLG_SPL_EARLY_INIT 0x04000 /* Early SPL init is done */
|
#define GD_FLG_SPL_EARLY_INIT 0x04000 /* Early SPL init is done */
|
||||||
#define GD_FLG_LOG_READY 0x08000 /* Log system is ready for use */
|
#define GD_FLG_LOG_READY 0x08000 /* Log system is ready for use */
|
||||||
#define GD_FLG_WDT_READY 0x10000 /* Watchdog is ready for use */
|
#define GD_FLG_WDT_READY 0x10000 /* Watchdog is ready for use */
|
||||||
|
#define GD_FLG_SKIP_LL_INIT 0x20000 /* Don't perform low-level init */
|
||||||
|
|
||||||
#endif /* __ASM_GENERIC_GBL_DATA_H */
|
#endif /* __ASM_GENERIC_GBL_DATA_H */
|
||||||
|
|
|
@ -20,7 +20,7 @@ struct global_data;
|
||||||
#ifdef CONFIG_EFI_STUB
|
#ifdef CONFIG_EFI_STUB
|
||||||
#define ll_boot_init() false
|
#define ll_boot_init() false
|
||||||
#else
|
#else
|
||||||
#define ll_boot_init() true
|
#define ll_boot_init() (!(gd->flags & GD_FLG_SKIP_LL_INIT))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue