soc: st: Migrate stm32l5 series to new hw model
Migrate STM2L5 series to new HW model. Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
parent
519752efcd
commit
2f7a387b32
|
@ -1,16 +0,0 @@
|
|||
# ST Microelectronics STM32L5 MCU line
|
||||
|
||||
# Copyright (c) 2020 Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
choice
|
||||
prompt "STM32L5x MCU Selection"
|
||||
depends on SOC_SERIES_STM32L5X
|
||||
|
||||
config SOC_STM32L552XX
|
||||
bool "STM32L552XX"
|
||||
|
||||
config SOC_STM32L562XX
|
||||
bool "STM32L562XX"
|
||||
|
||||
endchoice
|
|
@ -87,6 +87,10 @@ family:
|
|||
- name: stm32l151xc
|
||||
- name: stm32l152xc
|
||||
- name: stm32l152xe
|
||||
- name: stm32l5x
|
||||
socs:
|
||||
- name: stm32l552xx
|
||||
- name: stm32l562xx
|
||||
- name: stm32mp1x
|
||||
socs:
|
||||
- name: stm32mp157cxx
|
||||
|
|
|
@ -9,4 +9,6 @@ zephyr_sources_ifdef(CONFIG_PM
|
|||
power.c
|
||||
)
|
||||
|
||||
zephyr_include_directories(.)
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
|
|
@ -4,10 +4,8 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_STM32L5X
|
||||
bool "STM32L5x Series MCU"
|
||||
select ARM
|
||||
select CPU_CORTEX_M33
|
||||
select SOC_FAMILY_STM32
|
||||
select ARM_TRUSTZONE_M
|
||||
select CPU_HAS_ARM_SAU
|
||||
select CPU_HAS_ARM_MPU
|
||||
|
@ -16,5 +14,3 @@ config SOC_SERIES_STM32L5X
|
|||
select CPU_CORTEX_M_HAS_DWT
|
||||
select HAS_STM32CUBE
|
||||
select HAS_PM
|
||||
help
|
||||
Enable support for STM32L5 MCU series
|
|
@ -5,9 +5,9 @@
|
|||
|
||||
if SOC_SERIES_STM32L5X
|
||||
|
||||
source "soc/soc_legacy/arm/st_stm32/stm32l5/Kconfig.defconfig.stm32l5*"
|
||||
rsource "Kconfig.defconfig.stm32l5*"
|
||||
|
||||
config SOC_SERIES
|
||||
default "stm32l5"
|
||||
config ROM_START_OFFSET
|
||||
default 0x400 if BOOTLOADER_MCUBOOT
|
||||
|
||||
endif # SOC_SERIES_STM32L5X
|
|
@ -5,9 +5,6 @@
|
|||
|
||||
if SOC_STM32L552XX
|
||||
|
||||
config SOC
|
||||
default "stm32l552xx"
|
||||
|
||||
config NUM_IRQS
|
||||
default 108
|
||||
|
|
@ -5,9 +5,6 @@
|
|||
|
||||
if SOC_STM32L562XX
|
||||
|
||||
config SOC
|
||||
default "stm32l562xx"
|
||||
|
||||
config NUM_IRQS
|
||||
default 109
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# ST Microelectronics STM32L5 MCU line
|
||||
|
||||
# Copyright (c) 2020 Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_SERIES_STM32L5X
|
||||
bool
|
||||
select SOC_FAMILY_STM32
|
||||
|
||||
config SOC_SERIES
|
||||
default "stm32l5" if SOC_SERIES_STM32L5X
|
||||
|
||||
config SOC_STM32L552XX
|
||||
bool
|
||||
select SOC_SERIES_STM32L5X
|
||||
|
||||
config SOC_STM32L562XX
|
||||
bool
|
||||
select SOC_SERIES_STM32L5X
|
||||
|
||||
config SOC
|
||||
default "stm32l552xx" if SOC_STM32L552XX
|
||||
default "stm32l562xx" if SOC_STM32L562XX
|
Loading…
Reference in New Issue