diff options
author | Simon Glass <sjg@chromium.org> | 2021-12-17 06:59:25 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-12-23 18:24:39 +0300 |
commit | b4b6daf38d49c73f670bbf1654b568bca222fa79 (patch) | |
tree | e376c3b6678dce240e179df7fd02fdfbaf88c2e8 /include/asm-generic | |
parent | 3f51f78cbd1537deacf6ba163b014f9b200defd4 (diff) | |
download | u-boot-b4b6daf38d49c73f670bbf1654b568bca222fa79.tar.xz |
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')
-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 16fd305a65..99daa20c76 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 * |