Browse Source

soc: v2: stm32: Migrate STM32WL series

Port STM32WL series to HW model V2

Signed-off-by: Abderrahmane Jarmouni <abderrahmane.jarmouni-ext@st.com>
pull/69687/head
Abderrahmane Jarmouni 1 year ago committed by Jamie McCrae
parent
commit
6fbf39c726
  1. 22
      soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.soc
  2. 6
      soc/st/stm32/soc.yml
  3. 2
      soc/st/stm32/stm32wl/CMakeLists.txt
  4. 4
      soc/st/stm32/stm32wl/Kconfig
  5. 5
      soc/st/stm32/stm32wl/Kconfig.defconfig
  6. 3
      soc/st/stm32/stm32wl/Kconfig.defconfig.stm32wl54xx
  7. 3
      soc/st/stm32/stm32wl/Kconfig.defconfig.stm32wl55xx
  8. 3
      soc/st/stm32/stm32wl/Kconfig.defconfig.stm32wle4xx
  9. 3
      soc/st/stm32/stm32wl/Kconfig.defconfig.stm32wle5xx
  10. 33
      soc/st/stm32/stm32wl/Kconfig.soc
  11. 0
      soc/st/stm32/stm32wl/power.c
  12. 0
      soc/st/stm32/stm32wl/poweroff.c
  13. 0
      soc/st/stm32/stm32wl/soc.c
  14. 0
      soc/st/stm32/stm32wl/soc.h

22
soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.soc

@ -1,22 +0,0 @@ @@ -1,22 +0,0 @@
# STMicroelectronics STM32WL MCU line
# Copyright (c) 2020 STMicroelectronics.
# SPDX-License-Identifier: Apache-2.0
choice
prompt "STM32WLx MCU Selection"
depends on SOC_SERIES_STM32WLX
config SOC_STM32WLE4XX
bool "STM32WLE4XX"
config SOC_STM32WLE5XX
bool "STM32WLE5XX"
config SOC_STM32WL54XX
bool "STM32WL54XX"
config SOC_STM32WL55XX
bool "STM32WL55XX"
endchoice

6
soc/st/stm32/soc.yml

@ -100,3 +100,9 @@ family: @@ -100,3 +100,9 @@ family:
- name: stm32f303xe
- name: stm32f334x8
- name: stm32f373xc
- name: stm32wlx
socs:
- name: stm32wle4xx
- name: stm32wle5xx
- name: stm32wl54xx
- name: stm32wl55xx

2
soc/soc_legacy/arm/st_stm32/stm32wl/CMakeLists.txt → soc/st/stm32/stm32wl/CMakeLists.txt

@ -9,4 +9,6 @@ zephyr_sources_ifdef(CONFIG_PM @@ -9,4 +9,6 @@ zephyr_sources_ifdef(CONFIG_PM
zephyr_sources_ifdef(CONFIG_POWEROFF poweroff.c)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")

4
soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.series → soc/st/stm32/stm32wl/Kconfig

@ -4,15 +4,11 @@ @@ -4,15 +4,11 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32WLX
bool "STM32WLx Series MCU"
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 CLOCK_CONTROL_STM32_CUBE if CLOCK_CONTROL
select HAS_PM
select HAS_POWEROFF
help
Enable support for STM32WL MCU series

5
soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.defconfig.series → soc/st/stm32/stm32wl/Kconfig.defconfig

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_SERIES_STM32WLX
source "soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.defconfig.stm32wl*"
config SOC_SERIES
default "stm32wl"
rsource "Kconfig.defconfig.stm32wl*"
endif # SOC_SERIES_STM32WLX

3
soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.defconfig.stm32wl54xx → soc/st/stm32/stm32wl/Kconfig.defconfig.stm32wl54xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32WL54XX
config SOC
default "stm32wl54xx"
config NUM_IRQS
default 62

3
soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.defconfig.stm32wl55xx → soc/st/stm32/stm32wl/Kconfig.defconfig.stm32wl55xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32WL55XX
config SOC
default "stm32wl55xx"
config NUM_IRQS
default 62

3
soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.defconfig.stm32wle4xx → soc/st/stm32/stm32wl/Kconfig.defconfig.stm32wle4xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32WLE4XX
config SOC
default "stm32wle4xx"
config NUM_IRQS
default 62

3
soc/soc_legacy/arm/st_stm32/stm32wl/Kconfig.defconfig.stm32wle5xx → soc/st/stm32/stm32wl/Kconfig.defconfig.stm32wle5xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32WLE5XX
config SOC
default "stm32wle5xx"
config NUM_IRQS
default 62

33
soc/st/stm32/stm32wl/Kconfig.soc

@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
# STMicroelectronics STM32WL MCU line
# Copyright (c) 2020 STMicroelectronics.
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32WLX
bool
select SOC_FAMILY_STM32
config SOC_SERIES
default "stm32wl" if SOC_SERIES_STM32WLX
config SOC_STM32WLE4XX
bool
select SOC_SERIES_STM32WLX
config SOC_STM32WLE5XX
bool
select SOC_SERIES_STM32WLX
config SOC_STM32WL54XX
bool
select SOC_SERIES_STM32WLX
config SOC_STM32WL55XX
bool
select SOC_SERIES_STM32WLX
config SOC
default "stm32wle4xx" if SOC_STM32WLE4XX
default "stm32wle5xx" if SOC_STM32WLE5XX
default "stm32wl54xx" if SOC_STM32WL54XX
default "stm32wl55xx" if SOC_STM32WL55XX

0
soc/soc_legacy/arm/st_stm32/stm32wl/power.c → soc/st/stm32/stm32wl/power.c

0
soc/soc_legacy/arm/st_stm32/stm32wl/poweroff.c → soc/st/stm32/stm32wl/poweroff.c

0
soc/soc_legacy/arm/st_stm32/stm32wl/soc.c → soc/st/stm32/stm32wl/soc.c

0
soc/soc_legacy/arm/st_stm32/stm32wl/soc.h → soc/st/stm32/stm32wl/soc.h

Loading…
Cancel
Save