u-boot-brain/include/dm
Simon Glass 878d68c0c3 dm: core: Add functions to obtain node's address/size cells
The of_n_addr_cells() and of_n_size_cells() functions are useful for
getting the size of addresses in a node, but in a few places U-Boot needs
to obtain the actual property value for a node without walking up the
stack. Add functions for this and just the existing code to use it.

Add a comment to the existing ofnode functions which do not do the right
thing with a flat tree.

This fixes a problem reading PCI addresses.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1
2017-07-11 10:08:20 -06:00
..
platform_data serial: pxa: integrate optional driver model handling 2016-11-23 13:53:20 +01:00
device-internal.h dm: core: Allow binding a device from a live tree 2017-06-01 07:03:08 -06:00
device.h dm: core: Rename of_device_is_compatible() 2017-06-01 07:03:06 -06:00
fdtaddr.h dm: core: Add livetree address functions 2017-06-01 07:03:07 -06:00
lists.h dm: core: Update device_bind_driver_to_node() to use ofnode 2017-06-01 07:03:08 -06:00
of_access.h dm: core: Add functions to obtain node's address/size cells 2017-07-11 10:08:20 -06:00
of_addr.h dm: core: Add livetree address functions 2017-06-01 07:03:07 -06:00
of_extra.h dm: core: Add a place to put extra device-tree reading functions 2017-06-01 07:03:07 -06:00
of.h dm: Add more livetree helpers and definitions 2017-06-01 07:03:12 -06:00
ofnode.h dm: core: Add functions to obtain node's address/size cells 2017-07-11 10:08:20 -06:00
pinctrl.h
platdata.h
read.h dm: core: Add functions to obtain node's address/size cells 2017-07-11 10:08:20 -06:00
root.h dm: core: Scan the live tree when setting up driver model 2017-06-01 07:03:08 -06:00
test.h dm: core: Run tests with both livetree and flat tree 2017-06-01 07:03:10 -06:00
uclass-id.h dm: core: Test uclass_first/next_device() on probe failure 2017-07-11 10:08:19 -06:00
uclass-internal.h dm: core: Add a way to find a device by ofnode 2017-06-01 07:03:08 -06:00
uclass.h dm: core: Add uclass_first/next_device_check() 2017-07-11 10:08:19 -06:00
util.h dm: Return actual bools in dm_fdt_pre_reloc 2017-03-16 16:03:47 -06:00