2016-10-16 17:47:07 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
if ARCH_RISCV
|
|
|
|
comment "RISC-V Options"
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "RISC-V chip selection"
|
2021-03-11 04:06:42 +01:00
|
|
|
default ARCH_CHIP_RISCV_CUSTOM
|
2016-10-16 17:47:07 +02:00
|
|
|
|
2019-11-28 21:37:24 +01:00
|
|
|
config ARCH_CHIP_FE310
|
|
|
|
bool "SiFive FE310"
|
|
|
|
select ARCH_RV32IM
|
|
|
|
---help---
|
|
|
|
SiFive FE310 processor (E31 RISC-V Core with MAC extensions).
|
|
|
|
|
2019-12-31 16:06:20 +01:00
|
|
|
config ARCH_CHIP_K210
|
|
|
|
bool "Kendryte K210"
|
|
|
|
select ARCH_RV64GC
|
2020-02-14 08:10:50 +01:00
|
|
|
select ARCH_HAVE_MPU
|
2020-01-10 15:04:41 +01:00
|
|
|
select ARCH_HAVE_TESTSET
|
|
|
|
select ARCH_HAVE_MULTICPU
|
2019-12-31 16:06:20 +01:00
|
|
|
---help---
|
|
|
|
Kendryte K210 processor (RISC-V 64bit core with GC extensions)
|
|
|
|
|
2020-03-21 07:01:56 +01:00
|
|
|
config ARCH_CHIP_LITEX
|
|
|
|
bool "Enjoy Digital LITEX VEXRISCV"
|
|
|
|
select ARCH_RV32IM
|
|
|
|
---help---
|
|
|
|
Enjoy Digital LITEX VEXRISCV softcore processor (RV32IMA).
|
|
|
|
|
2020-12-17 12:04:46 +01:00
|
|
|
config ARCH_CHIP_BL602
|
|
|
|
bool "BouffaloLab BL602"
|
|
|
|
select ARCH_RV32IM
|
2021-02-05 07:29:10 +01:00
|
|
|
select ARCH_HAVE_FPU
|
2020-12-31 21:22:53 +01:00
|
|
|
select ARCH_HAVE_RESET
|
2020-12-17 12:04:46 +01:00
|
|
|
---help---
|
|
|
|
BouffaloLab BL602(rv32imfc)
|
|
|
|
|
2021-01-21 13:13:10 +01:00
|
|
|
config ARCH_CHIP_ESP32C3
|
|
|
|
bool "Espressif ESP32-C3"
|
|
|
|
select ARCH_RV32IM
|
|
|
|
select RV32IM_HW_MULDIV
|
|
|
|
select ARCH_VECNOTIRQ
|
2021-02-19 11:55:39 +01:00
|
|
|
select ARCH_HAVE_RESET
|
2021-03-08 11:00:09 +01:00
|
|
|
select LIBC_ARCH_MEMCHR
|
|
|
|
select LIBC_ARCH_MEMCMP
|
|
|
|
select LIBC_ARCH_MEMCCMP
|
|
|
|
select LIBC_ARCH_MEMMOVE
|
|
|
|
select LIBC_ARCH_MEMSET
|
2021-01-21 13:13:10 +01:00
|
|
|
---help---
|
|
|
|
Espressif ESP32-C3 (RV32IMC).
|
|
|
|
|
2021-03-08 16:19:29 +01:00
|
|
|
config ARCH_CHIP_C906
|
|
|
|
bool "THEAD C906"
|
|
|
|
select ARCH_RV64GC
|
2021-03-16 03:06:06 +01:00
|
|
|
select ARCH_HAVE_MPU
|
2021-03-08 16:19:29 +01:00
|
|
|
---help---
|
|
|
|
THEAD C906 processor (RISC-V 64bit core with GCVX extensions).
|
|
|
|
|
2020-10-15 05:29:59 +02:00
|
|
|
config ARCH_CHIP_RISCV_CUSTOM
|
|
|
|
bool "Custom RISC-V chip"
|
|
|
|
select ARCH_CHIP_CUSTOM
|
|
|
|
---help---
|
|
|
|
Select this option if there is no directory for the chip under arch/risc-v/src/.
|
|
|
|
|
2016-10-16 17:47:07 +02:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ARCH_RV32I
|
|
|
|
bool
|
|
|
|
default n
|
2020-12-03 13:10:10 +01:00
|
|
|
select ARCH_HAVE_SETJMP
|
2016-10-16 17:47:07 +02:00
|
|
|
|
|
|
|
config ARCH_RV32IM
|
|
|
|
bool
|
|
|
|
default n
|
2020-12-03 13:10:10 +01:00
|
|
|
select ARCH_HAVE_SETJMP
|
2016-10-16 17:47:07 +02:00
|
|
|
|
2019-12-31 16:06:20 +01:00
|
|
|
config ARCH_RV64GC
|
|
|
|
bool
|
|
|
|
default n
|
2020-05-31 20:41:11 +02:00
|
|
|
select LIBC_ARCH_ELF_64BIT if LIBC_ARCH_ELF
|
2020-12-03 13:10:10 +01:00
|
|
|
select ARCH_HAVE_SETJMP
|
2019-12-31 16:06:20 +01:00
|
|
|
|
2016-10-16 17:47:07 +02:00
|
|
|
config ARCH_FAMILY
|
|
|
|
string
|
2019-12-31 16:06:20 +01:00
|
|
|
default "rv32im" if ARCH_RV32IM
|
|
|
|
default "rv64gc" if ARCH_RV64GC
|
2016-10-16 17:47:07 +02:00
|
|
|
|
|
|
|
config ARCH_CHIP
|
|
|
|
string
|
2019-11-28 21:37:24 +01:00
|
|
|
default "fe310" if ARCH_CHIP_FE310
|
2019-12-31 16:06:20 +01:00
|
|
|
default "k210" if ARCH_CHIP_K210
|
2020-03-21 07:01:56 +01:00
|
|
|
default "litex" if ARCH_CHIP_LITEX
|
2020-12-17 12:04:46 +01:00
|
|
|
default "bl602" if ARCH_CHIP_BL602
|
2021-01-21 13:13:10 +01:00
|
|
|
default "esp32c3" if ARCH_CHIP_ESP32C3
|
2021-03-08 16:19:29 +01:00
|
|
|
default "c906" if ARCH_CHIP_C906
|
2016-10-16 17:47:07 +02:00
|
|
|
|
|
|
|
if ARCH_RV32IM
|
|
|
|
source arch/risc-v/src/rv32im/Kconfig
|
|
|
|
endif
|
2019-12-31 16:06:20 +01:00
|
|
|
if ARCH_RV64GC
|
|
|
|
source arch/risc-v/src/rv64gc/Kconfig
|
|
|
|
endif
|
2019-11-28 21:37:24 +01:00
|
|
|
if ARCH_CHIP_FE310
|
|
|
|
source arch/risc-v/src/fe310/Kconfig
|
|
|
|
endif
|
2019-12-31 16:06:20 +01:00
|
|
|
if ARCH_CHIP_K210
|
|
|
|
source arch/risc-v/src/k210/Kconfig
|
|
|
|
endif
|
2020-03-21 07:01:56 +01:00
|
|
|
if ARCH_CHIP_LITEX
|
|
|
|
source arch/risc-v/src/litex/Kconfig
|
|
|
|
endif
|
2020-12-17 12:04:46 +01:00
|
|
|
if ARCH_CHIP_BL602
|
|
|
|
source arch/risc-v/src/bl602/Kconfig
|
|
|
|
endif
|
2021-01-21 13:13:10 +01:00
|
|
|
if ARCH_CHIP_ESP32C3
|
|
|
|
source arch/risc-v/src/esp32c3/Kconfig
|
|
|
|
endif
|
2021-03-08 16:19:29 +01:00
|
|
|
if ARCH_CHIP_C906
|
|
|
|
source arch/risc-v/src/c906/Kconfig
|
|
|
|
endif
|
2016-10-16 17:47:07 +02:00
|
|
|
endif
|