aboutsummaryrefslogtreecommitdiff
path: root/common/spl/Kconfig
diff options
context:
space:
mode:
authorNikita Shubin <n.shubin@yadro.com>2022-08-08 13:28:52 +0300
committerLeo Yu-Chi Liang <ycliang@andestech.com>2022-08-11 18:46:41 +0800
commitaa0eda17cf98448c3ef826204f38c76bf48b3345 (patch)
tree6317ada727439315f77a8df999b5fd4d5bef5e35 /common/spl/Kconfig
parent48da0ca16eb3f31f54373e126eb63e18eb4d828f (diff)
downloadu-boot-aa0eda17cf98448c3ef826204f38c76bf48b3345.zip
u-boot-aa0eda17cf98448c3ef826204f38c76bf48b3345.tar.gz
u-boot-aa0eda17cf98448c3ef826204f38c76bf48b3345.tar.bz2
spl: opensbi: convert scratch options to config
Convert hardcoded "opensbi_info.options" to config provided value, this allows changing options passed to OpenSBI. SPL_OPENSBI_SCRATCH_OPTIONS is defaulted to SBI_SCRATCH_NO_BOOT_PRINTS. Link: https://github.com/riscv-software-src/opensbi/blob/master/docs/firmware/fw_dynamic.md Signed-off-by: Nikita Shubin <n.shubin@yadro.com> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'common/spl/Kconfig')
-rw-r--r--common/spl/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index ee98810..70d9781 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1488,6 +1488,14 @@ config SPL_OPENSBI_LOAD_ADDR
help
Load address of the OpenSBI binary.
+config SPL_OPENSBI_SCRATCH_OPTIONS
+ hex "Scratch options passed to OpenSBI"
+ default 0x1
+ depends on SPL_OPENSBI
+ help
+ Options passed to fw_dynamic, for example SBI_SCRATCH_NO_BOOT_PRINTS or
+ SBI_SCRATCH_DEBUG_PRINTS.
+
config SPL_TARGET
string "Addtional build targets for 'make'"
default "spl/u-boot-spl.srec" if RCAR_GEN2