xen/dts: fix DT_ROOT_NODE_ADDR_CELLS_DEFAULT
authorJulien Grall <julien.grall@linaro.org>
Mon, 9 Sep 2013 11:59:07 +0000 (12:59 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 9 Sep 2013 13:46:51 +0000 (14:46 +0100)
The commit dbd1243 "xen/arm: Add helpers to use the device tree" introduced
DT_ROOT_NODE_ADDR_CELLS_DEFAULT with is used for default value when
bad copy from Linux code.

The ePAR (section 2.3.5) says: "If missing, a client program should assume a
default value of 2 for #address-cells, and a value of 1 for #size-cells."

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/xen/device_tree.h

index 402cef212c0a2ac71d475480431732805228ac10..5cc1905461edc187751938a77d95ef618b1b412d 100644 (file)
@@ -233,7 +233,7 @@ struct dt_device_node * __init dt_find_interrupt_controller(const char *compat);
 #define dt_compat_cmp(s1, s2, l) strnicmp((s1), (s2), l)
 
 /* Default #address and #size cells */
-#define DT_ROOT_NODE_ADDR_CELLS_DEFAULT 1
+#define DT_ROOT_NODE_ADDR_CELLS_DEFAULT 2
 #define DT_ROOT_NODE_SIZE_CELLS_DEFAULT 1
 
 #define for_each_property_of_node(dn, pp)                   \