Skip to content

Commit

Permalink
Add Arch for SG2000. Add Board for Milk-V Duo S.
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jun 16, 2024
1 parent b5ef76b commit 527029c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
23 changes: 23 additions & 0 deletions arch/risc-v/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,25 @@ config ARCH_CHIP_K230
---help---
Kendryte K230 SoC (RV64GCV and RV64GCVX C908 cores).

config ARCH_CHIP_SG2000
bool "SOPHGO SG2000"
select ARCH_RV64
select ARCH_RV_ISA_M
select ARCH_RV_ISA_A
select ARCH_RV_ISA_C
select ARCH_HAVE_FPU
select ARCH_HAVE_DPFPU
select ARCH_HAVE_MULTICPU
select ARCH_HAVE_MPU
select ARCH_MMU_TYPE_SV39
select ARCH_HAVE_ADDRENV
select ARCH_NEED_ADDRENV_MAPPING
select ARCH_HAVE_S_MODE
select ONESHOT
select ALARM_ARCH
---help---
SOPHGO SG2000 SoC.

config ARCH_CHIP_RISCV_CUSTOM
bool "Custom RISC-V chip"
select ARCH_CHIP_CUSTOM
Expand Down Expand Up @@ -452,6 +471,7 @@ config ARCH_CHIP
default "jh7110" if ARCH_CHIP_JH7110
default "bl808" if ARCH_CHIP_BL808
default "k230" if ARCH_CHIP_K230
default "sg2000" if ARCH_CHIP_SG2000

config ARCH_RISCV_INTXCPT_EXTENSIONS
bool "RISC-V Integer Context Extensions"
Expand Down Expand Up @@ -658,4 +678,7 @@ endif
if ARCH_CHIP_K230
source "arch/risc-v/src/k230/Kconfig"
endif
if ARCH_CHIP_SG2000
source "arch/risc-v/src/sg2000/Kconfig"
endif
endif # ARCH_RISCV
11 changes: 11 additions & 0 deletions boards/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2007,6 +2007,13 @@ config ARCH_BOARD_BL808_OX64
This options selects support for NuttX on PINE64 Ox64 based
on Bouffalo Lab BL808 SoC.

config ARCH_BOARD_SG2000_DUOS
bool "Milk-V Duo S"
depends on ARCH_CHIP_SG2000
---help---
This options selects support for NuttX on Milk-V Duo S based
on SOPHGO SG2000 SoC.

config ARCH_BOARD_S32K118EVB
bool "NXP S32K118EVB"
depends on ARCH_CHIP_S32K118
Expand Down Expand Up @@ -3368,6 +3375,7 @@ config ARCH_BOARD
default "star64" if ARCH_BOARD_JH7110_STAR64
default "canmv230" if ARCH_BOARD_K230_CANMV
default "ox64" if ARCH_BOARD_BL808_OX64
default "duos" if ARCH_BOARD_SG2000_DUOS
default "sabre-6quad" if ARCH_BOARD_SABRE_6QUAD
default "tc397" if ARCH_BOARD_TC397
default "qemu-armv7a" if ARCH_BOARD_QEMU_ARMV7A
Expand Down Expand Up @@ -4302,6 +4310,9 @@ endif
if ARCH_BOARD_BL808_OX64
source "boards/risc-v/bl808/ox64/Kconfig"
endif
if ARCH_BOARD_SG2000_DUOS
source "boards/risc-v/sg2000/duos/Kconfig"
endif
if ARCH_BOARD_ESP32C3_DEVKIT
source "boards/risc-v/esp32c3-legacy/esp32c3-devkit/Kconfig"
endif
Expand Down

0 comments on commit 527029c

Please sign in to comment.