Skip to content

Commit e38983f

Browse files
committed
soc: use HWMv2 for arm mps3 SoC
This commit move the arm mps3 SoC to soc/v2 and adopt HWMv2. Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent dbfff1f commit e38983f

File tree

9 files changed

+28
-23
lines changed

9 files changed

+28
-23
lines changed

soc/arm/arm/mps3/Kconfig.series

Lines changed: 0 additions & 10 deletions
This file was deleted.

soc/arm/arm/mps3/CMakeLists.txt renamed to soc/v2/arm/mps3/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ zephyr_sources(
55
soc.c
66
)
77

8+
zephyr_include_directories(.)
9+
810
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Copyright (c) 2017-2021 Linaro Limited
22
# SPDX-License-Identifier: Apache-2.0
33

4-
choice
5-
prompt "Arm MPS3 SoCs"
6-
depends on SOC_SERIES_MPS3
4+
config SOC_SERIES_MPS3
5+
select ARM
6+
select SOC_FAMILY_ARM
7+
select GPIO_MMIO32 if GPIO
78

89
config SOC_MPS3_AN547
9-
bool "Arm Cortex-M55 SSE-300 on MPS3 (AN547)"
1010
select CPU_CORTEX_M55
1111
select CPU_HAS_ARM_SAU
1212
select CPU_HAS_ARM_MPU
@@ -16,8 +16,6 @@ config SOC_MPS3_AN547
1616
select ARMV8_1_M_MVEF
1717
select ARMV8_1_M_PMU
1818

19-
endchoice
20-
2119
config ARMV8_1_M_PMU_EVENTCNT
2220
int
2321
default 8 if SOC_MPS3_AN547

soc/arm/arm/mps3/Kconfig.defconfig.series renamed to soc/v2/arm/mps3/Kconfig.defconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33

44
if SOC_SERIES_MPS3
55

6-
config SOC_SERIES
7-
default "mps3"
8-
96
config SYS_CLOCK_HW_CYCLES_PER_SEC
107
default 25000000
118

12-
source "soc/arm/arm/mps3/Kconfig.defconfig.mps3*"
9+
rsource "Kconfig.defconfig.mps3*"
1310

1411
endif # SOC_SERIES_MPS3

soc/arm/arm/mps3/Kconfig.defconfig.mps3_an547 renamed to soc/v2/arm/mps3/Kconfig.defconfig.mps3_an547

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
if SOC_MPS3_AN547
55

6-
config SOC
7-
default "mps3_an547"
8-
96
config NUM_IRQS
107
default 128
118

soc/v2/arm/mps3/Kconfig.soc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2017-2021 Linaro Limited
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SOC_SERIES_MPS3
5+
bool
6+
help
7+
Enable support for ARM MPS3 MCU Series
8+
9+
config SOC_SERIES
10+
default "mps3" if SOC_SERIES_MPS3
11+
12+
config SOC_MPS3_AN547
13+
bool
14+
select SOC_SERIES_MPS3
15+
16+
config SOC
17+
default "mps3_an547" if SOC_MPS3_AN547
File renamed without changes.
File renamed without changes.

soc/v2/arm/mps3/soc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
series:
2+
- name: mps3
3+
socs:
4+
- name: an547

0 commit comments

Comments
 (0)