u-boot/include/dm
Simon Glass 9e51204527 dm: core: Add operations on device tree references
Since U-Boot supports both a live tree and a flat tree, we need an easy
way to access the tree without worrying about which is currently active.
To support this, U-Boot has the concept of an ofnode, which can refer
either to a live tree node or a flat tree node.

For the live tree, the reference contains a pointer to the node (struct
device_node *) or NULL if the node is invalid. For the flat tree, the
reference contains the node offset or -1 if the node is invalid.

Add a basic set of operations using ofnodes. These are implemented by
using either libfdt functions (in the case of a flat DT reference) or
the live-tree of_...() functions.

Note that it is not possible to have both live and flat references active
at the same time. As soon as the live tree is available, everything in
U-Boot should switch to using that. This avoids confusion and allows us to
assume that the type of a reference is simply based on whether we have a
live tree yet, or not.

Signed-off-by: Simon Glass <sjg@chromium.org>
2017-06-01 07:03:07 -06:00
..
platform_data serial: pxa: integrate optional driver model handling 2016-11-23 13:53:20 +01:00
device-internal.h dm: core: Add flags parameter to device_remove() 2017-04-04 20:15:10 -06:00
device.h dm: core: Rename of_device_is_compatible() 2017-06-01 07:03:06 -06:00
fdtaddr.h dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
lists.h dm: core: allow device_bind() to not return a device pointer 2015-08-31 07:57:29 -06:00
of_access.h dm: core: Add livetree access functions 2017-06-01 07:03:06 -06:00
of.h dm: core: Add livetree definitions 2017-06-01 07:03:06 -06:00
ofnode.h dm: core: Add operations on device tree references 2017-06-01 07:03:07 -06:00
pinctrl.h dm: pinctrl: Add a way for a GPIO driver to obtain a pin function 2016-01-21 20:42:35 -07:00
platdata.h dm: core: Expand platdata for of-platdata devices 2016-07-14 20:40:24 -06:00
root.h dm: core: Dont export dm_scan_fdt_node() 2017-06-01 07:03:03 -06:00
test.h video: sandbox: Allow selection of font size and console name 2016-01-30 10:57:30 +01:00
uclass-id.h drivers: phy: add generic PHY framework 2017-05-09 12:14:16 -06:00
uclass-internal.h dm: core: Export uclass_find_device_by_of_offset() 2016-01-21 20:42:35 -07:00
uclass.h dm: core: Add a function to get a uclass name 2016-10-11 11:55:33 +08:00
util.h dm: Return actual bools in dm_fdt_pre_reloc 2017-03-16 16:03:47 -06:00