soc: riscv: neorv32: reorganize SoC folder
Move out of riscv-privileged and convert to a standalone SoC. Note that the family/series structure has been dropped in favor of a single SoC (what NEORV32 seems to be). Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
7a44806a53
commit
b7b19b8b05
11 changed files with 31 additions and 38 deletions
|
@ -3,4 +3,4 @@
|
|||
|
||||
config BOARD_NEORV32
|
||||
bool "NEORV32 Processor (SoC)"
|
||||
depends on SOC_SERIES_NEORV32
|
||||
depends on SOC_NEORV32
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_NEORV32=y
|
||||
CONFIG_SOC_NEORV32=y
|
||||
CONFIG_SOC_NEORV32_ISA_C=y
|
||||
CONFIG_BOARD_NEORV32=y
|
||||
CONFIG_SERIAL=y
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_SERIES_NEORV32
|
||||
if SOC_NEORV32
|
||||
|
||||
config SOC_SERIES
|
||||
config SOC
|
||||
default "neorv32"
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
|
@ -29,4 +29,4 @@ config ENTROPY_INIT_PRIORITY
|
|||
default 55
|
||||
depends on ENTROPY_GENERATOR
|
||||
|
||||
endif # SOC_SERIES_NEORV32
|
||||
endif # SOC_NEORV32
|
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_NEORV32
|
||||
config SOC_NEORV32
|
||||
bool "NEORV32 Processor"
|
||||
select RISCV
|
||||
select RISCV_ISA_RV32I
|
||||
|
@ -10,6 +10,7 @@ config SOC_SERIES_NEORV32
|
|||
select RISCV_ISA_EXT_ZICSR
|
||||
select RISCV_ISA_EXT_ZIFENCEI
|
||||
select RISCV_PRIVILEGED
|
||||
select RISCV_PRIVILEGED_STANDALONE
|
||||
help
|
||||
Enable support for the NEORV32 Processor (SoC).
|
||||
|
||||
|
@ -24,3 +25,27 @@ config SOC_SERIES_NEORV32
|
|||
- E (Embedded, only 16 integer registers)
|
||||
- Zbb (Basic Bit Manipulation)
|
||||
- Zfinx (Floating Point in Integer Registers)
|
||||
|
||||
if SOC_NEORV32
|
||||
|
||||
config SOC_NEORV32_V1_8_6
|
||||
bool "v1.8.6"
|
||||
# NEORV32 RISC-V ISA A extension implements only LR/SC, not AMO
|
||||
select ATOMIC_OPERATIONS_C
|
||||
|
||||
config SOC_NEORV32_VERSION
|
||||
hex
|
||||
default 0x01080600 if SOC_NEORV32_V1_8_6
|
||||
help
|
||||
The targeted NEORV32 version as BCD-coded number. The format is
|
||||
identical to that of the NEORV32 Machine implementation ID (mimpid)
|
||||
register.
|
||||
|
||||
config SOC_NEORV32_ISA_C
|
||||
bool "RISC-V ISA Extension \"C\""
|
||||
select RISCV_ISA_EXT_C
|
||||
help
|
||||
Enable this if the NEORV32 CPU implementation supports the RISC-V ISA
|
||||
"C" extension (Compressed Instructions).
|
||||
|
||||
endif # SOC_NEORV32
|
|
@ -1,32 +0,0 @@
|
|||
# Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
choice
|
||||
prompt "NEORV32 Version"
|
||||
depends on SOC_SERIES_NEORV32
|
||||
|
||||
config SOC_NEORV32_V1_8_6
|
||||
bool "v1.8.6"
|
||||
# NEORV32 RISC-V ISA A extension implements only LR/SC, not AMO
|
||||
select ATOMIC_OPERATIONS_C
|
||||
|
||||
endchoice
|
||||
|
||||
if SOC_SERIES_NEORV32
|
||||
|
||||
config SOC_NEORV32_VERSION
|
||||
hex
|
||||
default 0x01080600 if SOC_NEORV32_V1_8_6
|
||||
help
|
||||
The targeted NEORV32 version as BCD-coded number. The format is
|
||||
identical to that of the NEORV32 Machine implementation ID (mimpid)
|
||||
register.
|
||||
|
||||
config SOC_NEORV32_ISA_C
|
||||
bool "RISC-V ISA Extension \"C\""
|
||||
select RISCV_ISA_EXT_C
|
||||
help
|
||||
Enable this if the NEORV32 CPU implementation supports the RISC-V ISA
|
||||
"C" extension (Compressed Instructions).
|
||||
|
||||
endif # SOC_SERIES_NEORV32
|
Loading…
Add table
Add a link
Reference in a new issue