aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@foss.st.com>2023-06-08 17:16:37 +0200
committerPatrice Chotard <patrice.chotard@foss.st.com>2023-06-16 11:01:15 +0200
commit0e7cc08320f7dd3dce33c14cb506525f378b5f8e (patch)
treea42c44f2bd33707a8436fa79b2ab8ccffac17fa0
parent5ac10c00ed727842c00d8659611151334f84c0ea (diff)
downloadu-boot-0e7cc08320f7dd3dce33c14cb506525f378b5f8e.zip
u-boot-0e7cc08320f7dd3dce33c14cb506525f378b5f8e.tar.gz
u-boot-0e7cc08320f7dd3dce33c14cb506525f378b5f8e.tar.bz2
fdt_support: include dm/ofnode.h
This patch is a preliminary patch to use ofnode function is fdt_support to read the U-Boot device tree with livetree compatible functions. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/fdt_support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 2053fe3..ffc59fd 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -13,6 +13,7 @@
#include <mapmem.h>
#include <net.h>
#include <stdio_dev.h>
+#include <dm/ofnode.h>
#include <linux/ctype.h>
#include <linux/types.h>
#include <asm/global_data.h>
@@ -1065,7 +1066,6 @@ void fdt_del_node_and_alias(void *blob, const char *alias)
/* Max address size we deal with */
#define OF_MAX_ADDR_CELLS 4
-#define OF_BAD_ADDR FDT_ADDR_T_NONE
#define OF_CHECK_COUNTS(na, ns) ((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \
(ns) > 0)