aboutsummaryrefslogtreecommitdiff
path: root/include/dm.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 17:18:10 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:04 -0600
commit4984de2baaaf82bfc9416e9cdbd3040b97856950 (patch)
treea3922476dddd7da5aae226a8eb5c16fc405bcca1 /include/dm.h
parentda409ccc4ae62a0bf7111e2f4419fdbfd1ba3d89 (diff)
downloadu-boot-4984de2baaaf82bfc9416e9cdbd3040b97856950.zip
u-boot-4984de2baaaf82bfc9416e9cdbd3040b97856950.tar.gz
u-boot-4984de2baaaf82bfc9416e9cdbd3040b97856950.tar.bz2
dm: core: Add ofnode to represent device tree nodes
With live tree we need a struct device_node * to reference a node. With the existing flat tree, we need an int offset. We need to unify these into a single value which can represent both. Add an ofnode union for this and adjust existing code to move to this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm.h')
-rw-r--r--include/dm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm.h b/include/dm.h
index 84f789d..e634814 100644
--- a/include/dm.h
+++ b/include/dm.h
@@ -7,6 +7,7 @@
#ifndef _DM_H_
#define _DM_H_
+#include <dm/ofnode.h>
#include <dm/device.h>
#include <dm/fdtaddr.h>
#include <dm/platdata.h>