aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Kisky <troykiskyboundary@gmail.com>2023-03-13 14:31:35 -0700
committerTom Rini <trini@konsulko.com>2023-05-10 16:45:42 -0400
commit55e4505dd2cc3085174862711891122ef02741da (patch)
tree24a9985e1fb6a6fa72ac5a090522bafa90c2d418
parent97c0db6ca524116472bd6c7e875283ca91158262 (diff)
downloadu-boot-55e4505dd2cc3085174862711891122ef02741da.zip
u-boot-55e4505dd2cc3085174862711891122ef02741da.tar.gz
u-boot-55e4505dd2cc3085174862711891122ef02741da.tar.bz2
ofnode: fdt_support definitions needed if OF_CONTROL is enabled
With the use of CONFIG_IS_ENABLED in code, instead of at the preprocessor level, these defines are still needed if OF_CONTROL is enabled. Signed-off-by: Troy Kisky <troykiskyboundary@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/fdt_support.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index 5638bd4..eeb83e6 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -7,7 +7,8 @@
#ifndef __FDT_SUPPORT_H
#define __FDT_SUPPORT_H
-#if defined(CONFIG_OF_LIBFDT) && !defined(USE_HOSTCC)
+#if (defined(CONFIG_OF_LIBFDT) || defined(CONFIG_OF_CONTROL)) && \
+ !defined(USE_HOSTCC)
#include <asm/u-boot.h>
#include <linux/libfdt.h>