u-boot/drivers/core
Patrice Chotard 642346ae26 dm: core: add ofnode_count_phandle_with_args()
This function is usefull to get phandle number contained
in a property list.
For example,  this allows to allocate the right amount
of memory to keep clock's reference contained into the
"clocks" property.

To implement it, either of_count_phandle_with_args() or
fdtdec_parse_phandle_with_args() are used respectively
for live tree and flat tree.
By passing index = -1, these 2 functions returns the
number of phandle contained into the property list.

Add also the dev_count_phandle_with_args() based on
ofnode_count_phandle_with_args()

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-07-28 23:34:08 +02:00
..
device-remove.c dm: core: Add DM_FLAG_OS_PREPARE flag 2017-05-17 17:13:06 +08:00
device.c dm: core: Allow binding a device from a live tree 2017-06-01 07:03:08 -06:00
devres.c devres: add debug command to dump device resources 2015-08-06 07:44:29 -06:00
dump.c dm: include <dm/util.h> from driver/core/dump.c 2017-07-11 10:08:20 -06:00
fdtaddr.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
Kconfig spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN 2017-07-27 14:59:03 +02:00
lists.c dm: ofnode: rename ofnode_read_prop() to ofnode_get_property() 2017-07-11 10:08:20 -06:00
Makefile dm: core: Add dev_read_resource() to read device resources 2017-07-11 10:08:20 -06:00
of_access.c dm: core: add ofnode_count_phandle_with_args() 2017-07-28 23:34:08 +02:00
of_addr.c dm: core: Add livetree address functions 2017-06-01 07:03:07 -06:00
of_extra.c dm: core: Add a place to put extra device-tree reading functions 2017-06-01 07:03:07 -06:00
ofnode.c dm: core: add ofnode_count_phandle_with_args() 2017-07-28 23:34:08 +02:00
read_extra.c dm: core: Add dev_read_resource() to read device resources 2017-07-11 10:08:20 -06:00
read.c dm: ofnode: rename ofnode_read_prop() to ofnode_get_property() 2017-07-11 10:08:20 -06:00
regmap.c dm: core: Add functions to obtain node's address/size cells 2017-07-11 10:08:20 -06:00
root.c dm: core: Scan the live tree when setting up driver model 2017-06-01 07:03:08 -06:00
simple-bus.c dm: simple-bus: Add support for livetree 2017-06-01 07:03:09 -06:00
syscon-uclass.c dm: syscon: Provide a generic syscon driver 2016-09-21 15:04:32 +02:00
uclass.c dm: core: Add uclass_first/next_device_check() 2017-07-11 10:08:19 -06:00
util.c dm: include <dm/util.h> from drivers/core/util.c 2017-07-11 10:08:20 -06:00