]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: ofnode: Add ofnode_read_bootscript_flash()
authorMichal Simek <michal.simek@amd.com>
Thu, 31 Aug 2023 07:04:27 +0000 (09:04 +0200)
committerMichal Simek <michal.simek@amd.com>
Thu, 21 Sep 2023 11:20:11 +0000 (13:20 +0200)
commit44f35e1aca706e7625aa2989911b4bc938681158
tree480bb2b88f4bc8ba5daf8208e54574f509a798cf
parent771635f6b0f5bc71d85beb7d994b1c66bf36f6ff
dm: core: ofnode: Add ofnode_read_bootscript_flash()

ofnode_read_bootscript_flash() reads bootscript address from
/options/u-boot DT node. bootscr-flash-offset and bootscr-flash-size
properties are read and values are filled. When bootscr-flash-size is not
defined, bootscr-flash-offset property is unusable that's why cleaned.
Both of these properties should be defined to function properly.

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/08a3e6c09cce13287c69ad370e409e7f1766b406.1693465465.git.michal.simek@amd.com
arch/sandbox/dts/test.dts
drivers/core/ofnode.c
include/dm/ofnode.h
test/dm/ofnode.c