soc: v2: stm32: Migrate STM32MP1 series

Port STM32MP1 series to HW model V2

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
This commit is contained in:
Abderrahmane Jarmouni 2024-02-07 14:49:06 +01:00 committed by Jamie McCrae
parent 2ba3639b2a
commit b54fe33077
11 changed files with 35 additions and 35 deletions

View File

@ -1,13 +0,0 @@
# ST Microelectronics STM32MP1 MCU/MPU line
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_STM32MP1X
source "soc/soc_legacy/arm/st_stm32/stm32mp1/Kconfig.defconfig.stm32mp15_m4"
config SOC_SERIES
default "stm32mp1"
endif # SOC_SERIES_STM32MP1X

View File

@ -1,13 +0,0 @@
# ST Microelectronics STM32MP1 MPU line
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
choice
prompt "STM32MP1 MPU Selection"
depends on SOC_SERIES_STM32MP1X
config SOC_STM32MP15_M4
bool "STM32MP15_M4"
endchoice

View File

@ -63,3 +63,6 @@ family:
- name: stm32l151xc
- name: stm32l152xc
- name: stm32l152xe
- name: stm32mp1x
socs:
- name: stm32mp157cxx

View File

@ -7,4 +7,6 @@ zephyr_sources(
soc.c
)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")

View File

@ -1,17 +1,13 @@
# ST Microelectronics STM32MP1 MPU series
# STMicroelectronics STM32MP1 MPU series
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32MP1X
bool "STM32MP15 Series MPU"
select ARM
select CPU_CORTEX_M4
select CPU_CORTEX_M_HAS_DWT
select SOC_FAMILY_STM32
select HAS_STM32CUBE
select CPU_HAS_ARM_MPU
select CPU_HAS_FPU
select OPENAMP_RSC_TABLE if RAM_CONSOLE
help
Enable support for STM32MP1 MPU series

View File

@ -0,0 +1,10 @@
# STMicroelectronics STM32MP1 MCU/MPU line
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_STM32MP1X
rsource "Kconfig.defconfig.stm32mp15_m4"
endif # SOC_SERIES_STM32MP1X

View File

@ -1,13 +1,10 @@
# ST Microelectronics STM32MP157C_M4 MCU
# STMicroelectronics STM32MP157C_M4 MCU
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32MP15_M4
config SOC
default "stm32mp157cxx"
config NUM_IRQS
default 150

View File

@ -0,0 +1,18 @@
# STMicroelectronics STM32MP1 MPU line
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32MP1X
bool
select SOC_FAMILY_STM32
config SOC_SERIES
default "stm32mp1" if SOC_SERIES_STM32MP1X
config SOC_STM32MP15_M4
bool
select SOC_SERIES_STM32MP1X
config SOC
default "stm32mp157cxx" if SOC_STM32MP15_M4