]> git.baikalelectronics.ru Git - uboot.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)
commitd076bbb26d5f5c22f151927c85a09c76bf4aa0cb
tree7274860398816aa71ee957aa8c8b443f7e3c0aa5
parenta3213c29a6538a0db30683206632aa6ddb4a20fa
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