Browse Source
Ports the SoC configuration to hardware model version 2 Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>pull/69687/head
29 changed files with 49 additions and 53 deletions
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
# Copyright (c) 2018 Foundries.io Ltd |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config SOC_OPENISA_RV32M1 |
||||
bool |
||||
help |
||||
Enable support for OpenISA RV32M1 RISC-V processors. Choose |
||||
this option to target the RI5CY or ZERO-RISCY core. This |
||||
option should not be used to target either Arm core. |
||||
|
||||
config SOC_OPENISA_RV32M1_RI5CY |
||||
bool |
||||
select SOC_OPENISA_RV32M1 |
||||
help |
||||
OpenISA RV32M1 RI5CY core |
||||
|
||||
config SOC_OPENISA_RV32M1_ZERO_RISCY |
||||
bool |
||||
select SOC_OPENISA_RV32M1 |
||||
help |
||||
OpenISA RV32M1 ZERO-RISCY core |
||||
|
||||
config SOC |
||||
default "openisa_rv32m1" if SOC_OPENISA_RV32M1 |
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
socs: |
||||
- name: openisa_rv32m1 |
||||
cpuclusters: |
||||
- name: zero_riscy |
||||
- name: ri5cy |
@ -1,25 +0,0 @@
@@ -1,25 +0,0 @@
|
||||
# Copyright (c) 2018 Foundries.io Ltd |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
# The OpenISA RV32M1 SoC directory in riscv supports the RISC-V |
||||
# cores on OpenISA RV32M1 SoCs. |
||||
# |
||||
# The Zephyr "soc" abstraction isn't a great fit here. These SoCs (in |
||||
# the strict physical sense of "systems on chip") also contain Arm |
||||
# cores, so this type of "soc" doesn't really belong to a single "arch". |
||||
# |
||||
# However, due to constraints imposed by Zephyr's file hierarchy |
||||
# conventions, those "other" cores would need to be supported under a |
||||
# different soc subdirectory, e.g. soc/soc_legacy/arm instead of soc/soc_legacy/riscv. |
||||
|
||||
choice |
||||
prompt "OpenISA RV32M1 RISC-V Core Selection" |
||||
depends on SOC_OPENISA_RV32M1_RISCV32 |
||||
|
||||
config SOC_OPENISA_RV32M1_RI5CY |
||||
bool "OpenISA RV32M1 RI5CY core" |
||||
|
||||
config SOC_OPENISA_RV32M1_ZERO_RISCY |
||||
bool "OpenISA RV32M1 ZERO-RISCY core" |
||||
|
||||
endchoice |
Loading…
Reference in new issue