diff options
author | Simon Glass <sjg@chromium.org> | 2021-12-16 20:59:25 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-12-23 10:24:39 -0500 |
commit | b4b6daf38d49c73f670bbf1654b568bca222fa79 (patch) | |
tree | e376c3b6678dce240e179df7fd02fdfbaf88c2e8 /include/asm-generic/global_data.h | |
parent | 3f51f78cbd1537deacf6ba163b014f9b200defd4 (diff) | |
download | u-boot-b4b6daf38d49c73f670bbf1654b568bca222fa79.zip u-boot-b4b6daf38d49c73f670bbf1654b568bca222fa79.tar.gz u-boot-b4b6daf38d49c73f670bbf1654b568bca222fa79.tar.bz2 |
fdt: Drop #ifdefs with MULTI_DTB_FIT
Refactor the code to drop the #ifdefs for this feature.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/asm-generic/global_data.h')
-rw-r--r-- | include/asm-generic/global_data.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 16fd305..99daa20 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -512,6 +512,14 @@ static_assert(sizeof(struct global_data) == GD_SIZE); #define gd_acpi_ctx() NULL #endif +#if CONFIG_IS_ENABLED(MULTI_DTB_FIT) +#define gd_multi_dtb_fit() gd->multi_dtb_fit +#define gd_set_multi_dtb_fit(_dtb) gd->multi_dtb_fit = _dtb +#else +#define gd_multi_dtb_fit() NULL +#define gd_set_multi_dtb_fit(_dtb) +#endif + /** * enum gd_flags - global data flags * |