lib: utils/fdt: Add fdt_parse_phandle_with_args() API
authorAnup Patel <anup.patel@wdc.com>
Tue, 13 Jul 2021 03:23:41 +0000 (11:23 +0800)
committerAnup Patel <anup@brainfault.org>
Sat, 17 Jul 2021 06:10:49 +0000 (11:40 +0530)
commite931f387b27a2f575f5b713391e241d8963b48c5
tree9d94f155241100b478c6defe947c69e262ee6e44
parent17729d44daf879e015950b0e9636afceefea0a59
lib: utils/fdt: Add fdt_parse_phandle_with_args() API

The libfdt project does not have a generic API to parse phandle
with args from a DT node so we add fdt_parse_phandle_with_args()
for this purpose. This new API will be useful to FDT based drivers.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi_utils/fdt/fdt_helper.h
lib/utils/fdt/fdt_helper.c