soc: neorv32: Port to HWMv2
Ports the SoC configuration to hardware model version 2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
committed by
Carles Cufi
parent
0f7add89ca
commit
d1edcdd088
@@ -2,7 +2,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_NEORV32
|
||||
bool "NEORV32 Processor"
|
||||
select RISCV
|
||||
select RISCV_ISA_RV32I
|
||||
select RISCV_ISA_EXT_M
|
||||
@@ -10,20 +9,6 @@ config SOC_NEORV32
|
||||
select RISCV_ISA_EXT_ZICSR
|
||||
select RISCV_ISA_EXT_ZIFENCEI
|
||||
select RISCV_PRIVILEGED
|
||||
help
|
||||
Enable support for the NEORV32 Processor (SoC).
|
||||
|
||||
The NEORV32 CPU implementation must have the following RISC-V ISA
|
||||
extensions enabled in order to support Zephyr:
|
||||
- M (Integer Multiplication and Division)
|
||||
- Zicsr (Control and Status Register (CSR) Instructions)
|
||||
|
||||
The following NEORV32 CPU ISA extensions are not currently supported
|
||||
by Zephyr and can safely be disabled:
|
||||
- A (Atomic Instructions)
|
||||
- E (Embedded, only 16 integer registers)
|
||||
- Zbb (Basic Bit Manipulation)
|
||||
- Zfinx (Floating Point in Integer Registers)
|
||||
|
||||
if SOC_NEORV32
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
|
||||
if SOC_NEORV32
|
||||
|
||||
config SOC
|
||||
default "neorv32"
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency) if RISCV_MACHINE_TIMER
|
||||
|
||||
22
soc/neorv32/Kconfig.soc
Normal file
22
soc/neorv32/Kconfig.soc
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (c) 2021 Henrik Brix Andersen <henrik@brixandersen.dk>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_NEORV32
|
||||
bool
|
||||
help
|
||||
NEORV32 Processor (SoC).
|
||||
|
||||
The NEORV32 CPU implementation must have the following RISC-V ISA
|
||||
extensions enabled in order to support Zephyr:
|
||||
- M (Integer Multiplication and Division)
|
||||
- Zicsr (Control and Status Register (CSR) Instructions)
|
||||
|
||||
The following NEORV32 CPU ISA extensions are not currently supported
|
||||
by Zephyr and can safely be disabled:
|
||||
- A (Atomic Instructions)
|
||||
- E (Embedded, only 16 integer registers)
|
||||
- Zbb (Basic Bit Manipulation)
|
||||
- Zfinx (Floating Point in Integer Registers)
|
||||
|
||||
config SOC
|
||||
default "neorv32" if SOC_NEORV32
|
||||
2
soc/neorv32/soc.yml
Normal file
2
soc/neorv32/soc.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
socs:
|
||||
- name: neorv32
|
||||
Reference in New Issue
Block a user