u-boot-brain/drivers/core
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
..
device-remove.c dm: core: Add DM_FLAG_OS_PREPARE flag 2017-05-17 17:13:06 +08:00
device.c dm: core: Rename of_device_is_compatible() 2017-06-01 07:03:06 -06:00
devres.c devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00
dump.c dm: Move the tree/uclass dump code into its own file 2015-07-21 17:39:22 -06:00
fdtaddr.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
Kconfig dm: core: Allow driver model to be disabled for TPL 2017-04-05 16:36:58 -04:00
lists.c dm: core: Set return value first in lists_bind_fdt() 2017-06-01 07:03:05 -06:00
Makefile dm: core: Add operations on device tree references 2017-06-01 07:03:07 -06:00
of_access.c dm: core: Add livetree access functions 2017-06-01 07:03:06 -06:00
ofnode.c dm: core: Add operations on device tree references 2017-06-01 07:03:07 -06:00
regmap.c dm: core: Replace of_offset with accessor (part 2) 2017-06-01 07:03:04 -06:00
root.c dm: core: Add ofnode to represent device tree nodes 2017-06-01 07:03:04 -06:00
simple-bus.c simple-bus: enable support for of-platdata 2017-02-08 06:12:16 -07:00
syscon-uclass.c dm: syscon: Provide a generic syscon driver 2016-09-21 15:04:32 +02:00
uclass.c core/uclass: Print name of device in uclass_find_device_by_seq() 2017-04-13 14:44:49 -06:00
util.c dm: Return actual bools in dm_fdt_pre_reloc 2017-03-16 16:03:47 -06:00