]> git.sur5r.net Git - u-boot/commit
dm: core: Add ofnode to represent device tree nodes
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 23:18:10 +0000 (17:18 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:04 +0000 (07:03 -0600)
commit4984de2baaaf82bfc9416e9cdbd3040b97856950
treea3922476dddd7da5aae226a8eb5c16fc405bcca1
parentda409ccc4ae62a0bf7111e2f4419fdbfd1ba3d89
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>
drivers/core/device.c
drivers/core/root.c
include/dm.h
include/dm/device.h
include/dm/ofnode.h [new file with mode: 0644]