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
..
2017-07-03 17:35:28 -04:00
2017-07-06 16:17:19 -04:00
2016-12-03 13:21:21 -05:00
2017-02-07 10:54:32 -06:00
2017-02-08 15:56:28 -05:00
2017-07-11 10:08:19 -06:00
2017-06-05 11:02:29 -04:00
2017-06-10 10:01:05 -04:00
2017-07-28 23:34:08 +02:00
2017-05-11 22:21:27 -04:00
2017-04-13 09:41:10 -04:00
2017-05-15 20:32:12 +02:00
2017-06-03 17:55:34 -04:00
2017-06-02 10:16:46 -06:00
2017-06-01 07:03:11 -06:00
2016-12-08 10:36:22 -06:00
2017-07-23 09:24:47 -04:00
2017-06-12 08:37:55 -04:00
2017-04-14 19:38:57 -06:00
2017-07-11 22:41:54 -04:00
2017-06-12 08:37:55 -04:00
2017-06-12 08:37:55 -04:00
2017-07-03 17:35:28 -04:00
2017-07-28 23:34:07 +02:00
2017-04-10 10:02:03 +08:00
2017-07-03 17:35:28 -04:00
2017-06-01 07:03:16 -06:00
2017-05-15 10:38:09 -04:00
2017-04-12 13:28:27 -04:00
2017-05-08 11:57:30 -04:00