]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdt_support: Add some useful functions
authorMarek Behún <marek.behun@nic.cz>
Fri, 26 Nov 2021 13:57:10 +0000 (14:57 +0100)
committerStefan Roese <sr@denx.de>
Sun, 19 Dec 2021 08:50:47 +0000 (09:50 +0100)
commit9ab0c2f837241b819b23cbb5d48fa43acc2938d5
tree7274860398816aa71ee957aa8c8b443f7e3c0aa5
parentc92ccba7710b3f5fbeebced9cad57f24c940b834
fdt_support: Add some useful functions

Add functions
  fdt_node_offset_by_pathf(),
  fdt_create_phandle_by_pathf(),
  fdt_set_status_by_pathf()
to get node offset, get/create node phandle and set status for node
given by path/alias formatted with sprintf.

Add functions
  fdt_create_phandle_by_compatible(),
  fdt_set_status_by_compatible()
to get/create node phandle and set status for first node given by
compatible.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
common/fdt_support.c
include/fdt_support.h