From patchwork Thu Apr 16 15:09:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 237841 List-Id: U-Boot discussion From: bmeng.cn at gmail.com (Bin Meng) Date: Thu, 16 Apr 2020 08:09:31 -0700 Subject: [PATCH v2 4/6] riscv: Add SMP Kconfig option dependency for U-Boot proper In-Reply-To: <1587049773-1464-1-git-send-email-bmeng.cn@gmail.com> References: <1587049773-1464-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1587049773-1464-5-git-send-email-bmeng.cn@gmail.com> U-Boot proper running in S-mode only need SMP support when using SBI v0.1. With SBI v0.2 HSM extension, it does not need implement multicore boot in U-Boot proper. Signed-off-by: Bin Meng Reviewed-by: Atish Patra --- Changes in v2: - add "!RISCV_SMODE" to the dependency arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 5ef6849..a252cdb 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -193,6 +193,7 @@ config SYS_MALLOC_F_LEN config SMP bool "Symmetric Multi-Processing" + depends on SBI_V01 || !RISCV_SMODE help This enables support for systems with more than one CPU. If you say N here, U-Boot will run on single and multiprocessor