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:
parent
2ba3639b2a
commit
b54fe33077
|
@ -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
|
|
@ -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
|
|
@ -63,3 +63,6 @@ family:
|
|||
- name: stm32l151xc
|
||||
- name: stm32l152xc
|
||||
- name: stm32l152xe
|
||||
- name: stm32mp1x
|
||||
socs:
|
||||
- name: stm32mp157cxx
|
||||
|
|
|
@ -7,4 +7,6 @@ zephyr_sources(
|
|||
soc.c
|
||||
)
|
||||
|
||||
zephyr_include_directories(.)
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue