summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandolph <randolph@andestech.com>2023-10-12 14:35:05 +0800
committerLeo Yu-Chi Liang <ycliang@andestech.com>2023-10-19 17:29:33 +0800
commitd311df8b31693809d0aa2073e3b5eda155bf04d2 (patch)
tree49f1c62e63ded416cdb6010e87e3d0e36b150bbe
parente09a2287c1faf8951ec7e7517788dae55d41a2c6 (diff)
downloadu-boot-d311df8b31693809d0aa2073e3b5eda155bf04d2.tar.gz
u-boot-d311df8b31693809d0aa2073e3b5eda155bf04d2.tar.bz2
u-boot-d311df8b31693809d0aa2073e3b5eda155bf04d2.zip
riscv: dts: binman: add condition for opensbi os boot
Add condition for OpenSBI OS boot mode, by default it is not enabled. By default, binman creates the output file u-boot.itb. If SPL_OPENSBI_OS_BOOT is enabled, linux.itb will be created after compilation instead of the default u-boot.itb. Signed-off-by: Randolph <randolph@andestech.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/riscv/dts/binman.dtsi24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/riscv/dts/binman.dtsi b/arch/riscv/dts/binman.dtsi
index b448b2a712..6b4eb8dc7b 100644
--- a/arch/riscv/dts/binman.dtsi
+++ b/arch/riscv/dts/binman.dtsi
@@ -16,7 +16,12 @@
&binman {
itb {
+
+#ifndef CONFIG_SPL_LOAD_FIT_OPENSBI_OS_BOOT
filename = "u-boot.itb";
+#else
+ filename = "linux.itb";
+#endif
fit {
description = "Configuration to load OpenSBI before U-Boot";
@@ -24,6 +29,7 @@
fit,fdt-list = "of-list";
images {
+#ifndef CONFIG_SPL_LOAD_FIT_OPENSBI_OS_BOOT
uboot {
description = "U-Boot";
type = "standalone";
@@ -37,6 +43,20 @@
filename = "u-boot-nodtb.bin";
};
};
+#else
+ linux {
+ description = "Linux";
+ type = "standalone";
+ os = "Linux";
+ arch = "riscv";
+ compression = "none";
+ load = <CONFIG_TEXT_BASE>;
+
+ linux_blob: blob-ext {
+ filename = "Image";
+ };
+ };
+#endif
opensbi {
description = "OpenSBI fw_dynamic Firmware";
@@ -74,7 +94,11 @@
#endif
description = "NAME";
firmware = "opensbi";
+#ifndef CONFIG_SPL_LOAD_FIT_OPENSBI_OS_BOOT
loadables = "uboot";
+#else
+ loadables = "linux";
+#endif
#ifndef CONFIG_OF_BOARD
fdt = "fdt-SEQ";
#endif