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>
This commit is contained in:
Simon Glass
2017-05-17 17:18:10 -06:00
parent da409ccc4a
commit 4984de2baa
5 changed files with 109 additions and 6 deletions

View File

@@ -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>