diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-17 17:18:10 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-01 07:03:04 -0600 |
commit | 4984de2baaaf82bfc9416e9cdbd3040b97856950 (patch) | |
tree | a3922476dddd7da5aae226a8eb5c16fc405bcca1 /include/dm.h | |
parent | da409ccc4ae62a0bf7111e2f4419fdbfd1ba3d89 (diff) | |
download | u-boot-4984de2baaaf82bfc9416e9cdbd3040b97856950.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm.h b/include/dm.h index 84f789d807..e634814d74 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> |