diff options
author | Tom Rini <trini@konsulko.com> | 2023-10-06 17:23:47 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-06 17:23:47 -0400 |
commit | 83aa0ed1e93e1ffac24888d98d37a5b04ed3fb07 (patch) | |
tree | fcabaf4a86164f385ede03b654bc69cbffb2a3ee /include/bloblist.h | |
parent | be2abe73df58a35da9e8d5afb13fccdf1b0faa8e (diff) | |
parent | f69d3d6d10b15872a279aeb10b7c522627aff6c2 (diff) |
Merge branch '2023-10-06-spl-prepare-for-universal-payload'
To quote the author:
This series tidies up SPL a little and adds some core ofnode functions
needed to support Universal Payload. It also includes a few minor
fix-ups for sandbox.
For SPL the changes include CONFIG naming, removing various #ifdefs and
tidying up the FIT code.
One notable piece of the ofnode improvements is support for flattening a
livetree. This should be useful in future as we move FDT fixups to use
the ofnode API.
Diffstat (limited to 'include/bloblist.h')
-rw-r--r-- | include/bloblist.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/bloblist.h b/include/bloblist.h index 7ea72c6bd46..080cc46a126 100644 --- a/include/bloblist.h +++ b/include/bloblist.h @@ -413,8 +413,26 @@ void bloblist_reloc(void *to, uint to_size, void *from, uint from_size); * standard passage. The size is detected automatically so CONFIG_BLOBLIST_SIZE * can be 0. * + * Sets GD_FLG_BLOBLIST_READY in global_data flags on success + * * Return: 0 if OK, -ve on error */ int bloblist_init(void); +#if CONFIG_IS_ENABLED(BLOBLIST) +/** + * bloblist_maybe_init() - Init the bloblist system if not already done + * + * Calls bloblist_init() if the GD_FLG_BLOBLIST_READY flag is not et + * + * Return: 0 if OK, -ve on error + */ +int bloblist_maybe_init(void); +#else +static inline int bloblist_maybe_init(void) +{ + return 0; +} +#endif /* BLOBLIST */ + #endif /* __BLOBLIST_H */ |