aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorMichal Simek2023-08-31 08:59:05 +0200
committerMichal Simek2023-09-21 13:20:11 +0200
commitdb5e349d3ddfc75953b2364e94b111ea1795f3c8 (patch)
tree993ebc7d3e58645baabfa8f1fae32193f4a405cf /arch/sandbox
parent99b46477e3495f819f6826d11470d46f12a4f9f7 (diff)
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
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index e6a471e40d9..d93c010bc5b 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -81,6 +81,13 @@
};
};
+ options {
+ u-boot {
+ compatible = "u-boot,config";
+ bootscr-ram-offset = /bits/ 64 <0x12345678>;
+ };
+ };
+
bootstd {
bootph-verify;
compatible = "u-boot,boot-std";