]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: ofnode: Add ofnode_read_bootscript_address()
authorMichal Simek <michal.simek@amd.com>
Thu, 31 Aug 2023 06:59:05 +0000 (08:59 +0200)
committerMichal Simek <michal.simek@amd.com>
Thu, 21 Sep 2023 11:20:11 +0000 (13:20 +0200)
commitdb5e349d3ddfc75953b2364e94b111ea1795f3c8
tree993ebc7d3e58645baabfa8f1fae32193f4a405cf
parent99b46477e3495f819f6826d11470d46f12a4f9f7
dm: core: ofnode: Add ofnode_read_bootscript_address()

ofnode_read_bootscript_address() reads bootscript address from
/options/u-boot DT node. bootscr-address or bootscr-ram-offset properties
are read and values are filled. bootscr-address has higher priority than
bootscr-ram-offset and the only one should be described in DT.

Also add test to cover this new function.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/23be3838502efef61803c90ef6e8b32bbd6ede41.1693465140.git.michal.simek@amd.com
arch/sandbox/dts/test.dts
drivers/core/ofnode.c
include/dm/ofnode.h
test/dm/ofnode.c