aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/device_tree.h
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-09-09 12:59:07 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-09-09 14:46:51 +0100
commit4d10a505c1eb6feb85292ab944c18e28f5583294 (patch)
tree48244ed6d198b2f9fa0026232aafb7cb0e69e201 /xen/include/xen/device_tree.h
parentffcbfb66eeb38d0f0180d5ac99a3a8b2c8dd9af7 (diff)
downloadxen-4d10a505c1eb6feb85292ab944c18e28f5583294.tar.gz
xen-4d10a505c1eb6feb85292ab944c18e28f5583294.tar.bz2
xen-4d10a505c1eb6feb85292ab944c18e28f5583294.zip
xen/dts: fix DT_ROOT_NODE_ADDR_CELLS_DEFAULT
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>
Diffstat (limited to 'xen/include/xen/device_tree.h')
-rw-r--r--xen/include/xen/device_tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h
index 402cef212c..5cc1905461 100644
--- a/xen/include/xen/device_tree.h
+++ b/xen/include/xen/device_tree.h
@@ -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) \