aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Brugger <mbrugger@suse.com>2019-09-05 10:48:49 +0200
committerSimon Glass <sjg@chromium.org>2019-10-15 08:40:02 -0600
commit7a3f15e7181cf5a9667ff410260397f0e51c9020 (patch)
tree1096a310c239cb83683813be04a199ab21aa0b8d
parent8076fc298ee1004cfbd9f9f4882931aff1ffda06 (diff)
downloadu-boot-7a3f15e7181cf5a9667ff410260397f0e51c9020.zip
u-boot-7a3f15e7181cf5a9667ff410260397f0e51c9020.tar.gz
u-boot-7a3f15e7181cf5a9667ff410260397f0e51c9020.tar.bz2
dm: Fix default address cells return value
Default address cells value on the livetree access function returns the wrong value. Fix this so that the value returned corresponds to the device tree specification. Signed-off-by: Matthias Brugger <mbrugger@suse.com>
-rw-r--r--include/dm/of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/of.h b/include/dm/of.h
index 461e25a..6bef73b 100644
--- a/include/dm/of.h
+++ b/include/dm/of.h
@@ -111,7 +111,7 @@ static inline const char *of_node_full_name(const struct device_node *np)
/* Default #address and #size cells */
#if !defined(OF_ROOT_NODE_ADDR_CELLS_DEFAULT)
-#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 1
+#define OF_ROOT_NODE_ADDR_CELLS_DEFAULT 2
#define OF_ROOT_NODE_SIZE_CELLS_DEFAULT 1
#endif