Availability of RISC-V SBI service implies a prior stage exists. As SBI firmware usually passes a FDT to the loaded program, let's select OF_HAS_PRIOR_STAGE if SBI is enabled.
With previously added fallback version of board_fdt_blob_setup, S-Mode RISC-V ports use the SBI-provided FDT by default. This covers the most common usecase, where a SPL (probably the U-Boot one) selects proper devicetree, loads SBI and U-Boot then invokes SBI with the devicetree. Signed-off-by: Yao Zi <zi...@disroot.org> --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index b24623590f2..f7706788f92 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -410,6 +410,7 @@ config NR_CPUS config SBI bool default y if RISCV_SMODE || SPL_RISCV_SMODE + imply OF_HAS_PRIOR_STAGE choice prompt "SBI support" -- 2.48.1