You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/08/12 12:43:12 UTC

(nuttx) 01/02: riscv/qemu-rv: add cluster PLIC/CLINT configs

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6db85498a2eb4731c3b28c25873df7b10d2febd5
Author: Yanfeng Liu <yf...@qq.com>
AuthorDate: Mon Jul 29 16:10:53 2024 +0800

    riscv/qemu-rv: add cluster PLIC/CLINT configs
    
    This adds cluster specific configs for PLIC, CLINT and ACLINT
    devices.
    
    Signed-off-by: Yanfeng Liu <yf...@qq.com>
---
 arch/risc-v/src/qemu-rv/Kconfig | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/arch/risc-v/src/qemu-rv/Kconfig b/arch/risc-v/src/qemu-rv/Kconfig
index 5d5b8b2dd4..550b854c57 100644
--- a/arch/risc-v/src/qemu-rv/Kconfig
+++ b/arch/risc-v/src/qemu-rv/Kconfig
@@ -40,4 +40,24 @@ config ARCH_CHIP_QEMU_RV_ISA_V
 	default n
 	select ARCH_RV_ISA_V
 
-endif
+config ARCH_CHIP_QEMU_RV_CLUSTER
+	bool "Enable cluster support"
+	default n
+
+if ARCH_CHIP_QEMU_RV_CLUSTER
+
+config ARCH_CHIP_QEMU_RV_PLIC
+	hex "Base address of PLIC device"
+	default 0xc000000
+
+config ARCH_CHIP_QEMU_RV_CLINT
+	hex "Base address of CLINT device"
+	default 0x2000000
+
+config ARCH_CHIP_QEMU_RV_ACLINT
+	hex "Base address of ACLINT device"
+	default 0x2f00000
+
+endif # ARCH_CHIP_QEMU_RV_CLUSTER
+
+endif # ARCH_CHIP_QEMU_RV