]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Add a way to convert a devicetree to a dtb
authorSimon Glass <sjg@chromium.org>
Tue, 26 Sep 2023 14:14:43 +0000 (08:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2023 18:38:13 +0000 (14:38 -0400)
commit62b1db33778611a3023d1e3a98e869b495edc9ca
treea02bcbcf8555af6897638135af9662a53ff591af
parent67fb2159fb3438359fa0fc3f8cb491ffe8d57c0f
dm: core: Add a way to convert a devicetree to a dtb

Add a way to flatten a devicetree into binary form. For livetree this
involves generating the devicetree using fdt_property() and other calls.
For flattree it simply involves providing the buffer containing the tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h
include/of_live.h
lib/of_live.c
test/dm/ofnode.c