spl: opensbi: convert scratch options to config
authorNikita Shubin <n.shubin@yadro.com>
Mon, 8 Aug 2022 10:28:52 +0000 (13:28 +0300)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 11 Aug 2022 10:46:41 +0000 (18:46 +0800)
commitaa0eda17cf98448c3ef826204f38c76bf48b3345
tree6317ada727439315f77a8df999b5fd4d5bef5e35
parent48da0ca16eb3f31f54373e126eb63e18eb4d828f
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>
common/spl/Kconfig
common/spl/spl_opensbi.c