soc: beetle: Port to HWMv2

Ports the beetle SoC configuration to hardware model version 2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-02 13:12:21 +00:00
committed by Carles Cufi
parent 867960a891
commit 85de0888ec
16 changed files with 28 additions and 30 deletions

View File

@@ -5,4 +5,6 @@ zephyr_sources(
power.c
)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")

View File

@@ -4,11 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_BEETLE
bool "Arm Beetle MCU Series"
select ARM
select CPU_CORTEX_M3
select SOC_FAMILY_ARM
select CPU_HAS_ARM_MPU
select CPU_CORTEX_M_HAS_DWT
help
Enable support for Beetle MCU Series

View File

@@ -5,11 +5,6 @@
if SOC_SERIES_BEETLE
source "soc/soc_legacy/arm/arm/beetle/Kconfig.defconfig.beetle*"
config SOC_SERIES
default "beetle"
config NUM_IRQS
default 45

View File

@@ -0,0 +1,22 @@
# ARM LTD Beetle SoC configuration options
# Copyright (c) 2016 Linaro Limited
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_BEETLE
bool
select SOC_FAMILY_ARM
help
Enable support for Beetle MCU Series
config SOC_BEETLE_R0
bool
select SOC_SERIES_BEETLE
help
ARM BEETLE R0
config SOC_SERIES
default "beetle" if SOC_SERIES_BEETLE
config SOC
default "beetle_r0" if SOC_BEETLE_R0

4
soc/arm/beetle/soc.yml Normal file
View File

@@ -0,0 +1,4 @@
series:
- name: beetle
socs:
- name: beetle_r0

View File

@@ -1,8 +0,0 @@
# ARM LTD Beetle SoC configuration options
# Copyright (c) 2016 Linaro Limited
# SPDX-License-Identifier: Apache-2.0
config SOC
default "beetle_r0"
depends on SOC_BEETLE_R0

View File

@@ -1,13 +0,0 @@
# ARM LTD Beetle SoC configuration options
# Copyright (c) 2016 Linaro Limited
# SPDX-License-Identifier: Apache-2.0
choice
prompt "ARM Beetle SoC"
depends on SOC_SERIES_BEETLE
config SOC_BEETLE_R0
bool "ARM BEETLE R0"
endchoice