diff options
Diffstat (limited to 'include/spl.h')
-rw-r--r-- | include/spl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/spl.h b/include/spl.h index ab06e32..6c6ca07 100644 --- a/include/spl.h +++ b/include/spl.h @@ -263,6 +263,15 @@ struct spl_image_info { #endif }; +static inline void *spl_image_fdt_addr(struct spl_image_info *info) +{ +#if CONFIG_IS_ENABLED(LOAD_FIT) || CONFIG_IS_ENABLED(LOAD_FIT_FULL) + return info->fdt_addr; +#else + return 0; +#endif +} + /** * Information required to load data from a device * |