diff options
| author | Simon Glass <sjg@chromium.org> | 2023-09-26 08:14:51 -0600 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2023-10-06 14:38:13 -0400 |
| commit | 3d6531803e1cdc4c6976dae3c92220daba57f148 (patch) | |
| tree | 5eda2604e5936879cd502bace98e92730143e3ba /common/board_f.c | |
| parent | ff6c708b999aa8b713e7951b9195c8e743495d8b (diff) | |
bloblist: Support initing from multiple places
Typically the bloblist is set up after the devicetree is present. This
makes sense because bloblist may use malloc() to allocate the space it
needs.
However sometimes the devicetree itself may be present in the bloblist.
In that case it is at a known location in memory so we can init the
bloblist very early, before devicetree.
Add a flag to indicate whether the bloblist has been inited. Add a
function to init it only if needed. Use that in the init sequence.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/board_f.c')
| -rw-r--r-- | common/board_f.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/board_f.c b/common/board_f.c index 99c2a43c196..d4d7d01f8f6 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -841,9 +841,7 @@ static const init_fnc_t init_sequence_f[] = { log_init, initf_bootstage, /* uses its own timer, so does not need DM */ event_init, -#ifdef CONFIG_BLOBLIST - bloblist_init, -#endif + bloblist_maybe_init, setup_spl_handoff, #if defined(CONFIG_CONSOLE_RECORD_INIT_F) console_record_init, |
