]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: riscv: add os type for next booting stage
authorRandolph <randolph@andestech.com>
Thu, 12 Oct 2023 06:35:07 +0000 (14:35 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 19 Oct 2023 09:29:33 +0000 (17:29 +0800)
commit58fa2a5aa164fd8b516bd66649bbb595ebf1540c
tree4c08bb463fd6c669119d57f3b5b2e04c74503b01
parent9421e419817a2a86ad73995ff3ffd0957bec7b82
spl: riscv: add os type for next booting stage

If SPL_LOAD_FIT_OPENSBI_OS_BOOT is enabled, the function
spl_invoke_opensbi should change the target OS type to IH_OS_LINUX.
OpenSBI will load the Linux image as the next boot stage.
The os_takes_devicetree function returns a value of true or false
depending on whether or not SPL_LOAD_FIT_OPENSBI_OS_BOOT is enabled.

Signed-off-by: Randolph <randolph@andestech.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/spl/spl_fit.c
common/spl/spl_opensbi.c