Browse Source

soc: st: stm32: Migrate STM32L4 series

Port STM32L4 series to HW model v2

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
pull/69687/head
Guillaume Gautier 1 year ago committed by Carles Cufi
parent
commit
d15144f582
  1. 70
      soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.soc
  2. 21
      soc/st/stm32/soc.yml
  3. 2
      soc/st/stm32/stm32l4/CMakeLists.txt
  4. 4
      soc/st/stm32/stm32l4/Kconfig
  5. 2
      soc/st/stm32/stm32l4/Kconfig.defconfig
  6. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l412xx
  7. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l422xx
  8. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l431xx
  9. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l432xx
  10. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l433xx
  11. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l451xx
  12. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l452xx
  13. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l462xx
  14. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l471xx
  15. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l475xx
  16. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l476xx
  17. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l486xx
  18. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l496xx
  19. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4a6xx
  20. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4p5xx
  21. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4q5xx
  22. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4r5xx
  23. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4r9xx
  24. 3
      soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4s5xx
  25. 111
      soc/st/stm32/stm32l4/Kconfig.soc
  26. 0
      soc/st/stm32/stm32l4/power.c
  27. 0
      soc/st/stm32/stm32l4/poweroff.c
  28. 0
      soc/st/stm32/stm32l4/soc.c
  29. 0
      soc/st/stm32/stm32l4/soc.h

70
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.soc

@ -1,70 +0,0 @@ @@ -1,70 +0,0 @@
# ST Microelectronics STM32L4 MCU line
# Copyright (c) 2016 Open-RnD Sp. z o.o.
# Copyright (c) 2016 BayLibre, SAS
# Copyright (c) 2019 Centaur Analytics, Inc
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
choice
prompt "STM32L4x MCU Selection"
depends on SOC_SERIES_STM32L4X
config SOC_STM32L476XX
bool "STM32L476XX"
config SOC_STM32L486XX
bool "STM32L486XX"
config SOC_STM32L496XX
bool "STM32L496XX"
config SOC_STM32L4A6XX
bool "STM32L4A6XX"
config SOC_STM32L412XX
bool "STM32L412XX"
config SOC_STM32L422XX
bool "STM32L422XX"
config SOC_STM32L431XX
bool "STM32L431XX"
config SOC_STM32L432XX
bool "STM32L432XX"
config SOC_STM32L433XX
bool "STM32L433XX"
config SOC_STM32L451XX
bool "STM32L451XX"
config SOC_STM32L452XX
bool "STM32L452XX"
config SOC_STM32L462XX
bool "STM32L462XX"
config SOC_STM32L475XX
bool "STM32L475XX"
config SOC_STM32L4P5XX
bool "STM32L4P5XX"
config SOC_STM32L4Q5XX
bool "STM32L4Q5XX"
config SOC_STM32L4S5XX
bool "STM32L4S5XX"
config SOC_STM32L4R5XX
bool "STM32L4R5XX"
config SOC_STM32L4R9XX
bool "STM32L4R9XX"
config SOC_STM32L471XX
bool "STM32L471XX"
endchoice

21
soc/st/stm32/soc.yml

@ -137,6 +137,27 @@ family: @@ -137,6 +137,27 @@ family:
- name: stm32l151xc
- name: stm32l152xc
- name: stm32l152xe
- name: stm32l4x
socs:
- name: stm32l412xx
- name: stm32l422xx
- name: stm32l431xx
- name: stm32l432xx
- name: stm32l433xx
- name: stm32l451xx
- name: stm32l452xx
- name: stm32l462xx
- name: stm32l471xx
- name: stm32l475xx
- name: stm32l476xx
- name: stm32l486xx
- name: stm32l496xx
- name: stm32l4a6xx
- name: stm32l4p5xx
- name: stm32l4q5xx
- name: stm32l4s5xx
- name: stm32l4r5xx
- name: stm32l4r9xx
- name: stm32l5x
socs:
- name: stm32l552xx

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

@ -11,4 +11,6 @@ zephyr_sources_ifdef(CONFIG_PM @@ -11,4 +11,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/stm32l4/Kconfig.series → soc/st/stm32/stm32l4/Kconfig

@ -5,16 +5,12 @@ @@ -5,16 +5,12 @@
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32L4X
bool "STM32L4x Series MCU"
select ARM
select CPU_CORTEX_M4
select CPU_CORTEX_M_HAS_DWT
select CPU_HAS_FPU
select SOC_FAMILY_STM32
select HAS_STM32CUBE
select CPU_HAS_ARM_MPU
select HAS_SWO
select HAS_PM
select HAS_POWEROFF
help
Enable support for STM32L4 MCU series

2
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.series → soc/st/stm32/stm32l4/Kconfig.defconfig

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
if SOC_SERIES_STM32L4X
source "soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4*"
rsource "Kconfig.defconfig.stm32l4*"
config SOC_SERIES
default "stm32l4"

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l412xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l412xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L412XX
config SOC
default "stm32l412xx"
config NUM_IRQS
default 83

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l422xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l422xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L422XX
config SOC
default "stm32l422xx"
config NUM_IRQS
default 83

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l431xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l431xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L431XX
config SOC
default "stm32l431xx"
config NUM_IRQS
default 83

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l432xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l432xx

@ -6,9 +6,6 @@ @@ -6,9 +6,6 @@
if SOC_STM32L432XX
config SOC
default "stm32l432xx"
config NUM_IRQS
default 83

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l433xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l433xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L433XX
config SOC
default "stm32l433xx"
config NUM_IRQS
default 83

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l451xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l451xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L451XX
config SOC
default "stm32l451xx"
config NUM_IRQS
default 85

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l452xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l452xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L452XX
config SOC
default "stm32l452xx"
config NUM_IRQS
default 85

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l462xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l462xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L462XX
config SOC
default "stm32l462xx"
config NUM_IRQS
default 85

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l471xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l471xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L471XX
config SOC
default "stm32l471xx"
config NUM_IRQS
default 82

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l475xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l475xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L475XX
config SOC
default "stm32l475xx"
config NUM_IRQS
default 82

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l476xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l476xx

@ -6,9 +6,6 @@ @@ -6,9 +6,6 @@
if SOC_STM32L476XX
config SOC
default "stm32l476xx"
config NUM_IRQS
default 82

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l486xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l486xx

@ -7,9 +7,6 @@ @@ -7,9 +7,6 @@
if SOC_STM32L486XX
config SOC
default "stm32l486xx"
config NUM_IRQS
default 82

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l496xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l496xx

@ -7,9 +7,6 @@ @@ -7,9 +7,6 @@
if SOC_STM32L496XX
config SOC
default "stm32l496xx"
config NUM_IRQS
default 91

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4a6xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4a6xx

@ -8,9 +8,6 @@ @@ -8,9 +8,6 @@
if SOC_STM32L4A6XX
config SOC
default "stm32l4a6xx"
config NUM_IRQS
default 91

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4p5xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4p5xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L4P5XX
config SOC
default "stm32l4p5xx"
config NUM_IRQS
default 95

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4q5xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4q5xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L4Q5XX
config SOC
default "stm32l4q5xx"
config NUM_IRQS
default 95

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4r5xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4r5xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L4R5XX
config SOC
default "stm32l4r5xx"
config NUM_IRQS
default 95

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4r9xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4r9xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L4R9XX
config SOC
default "stm32l4r9xx"
config NUM_IRQS
default 95

3
soc/soc_legacy/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4s5xx → soc/st/stm32/stm32l4/Kconfig.defconfig.stm32l4s5xx

@ -5,9 +5,6 @@ @@ -5,9 +5,6 @@
if SOC_STM32L4S5XX
config SOC
default "stm32l4s5xx"
config NUM_IRQS
default 95

111
soc/st/stm32/stm32l4/Kconfig.soc

@ -0,0 +1,111 @@ @@ -0,0 +1,111 @@
# ST Microelectronics STM32L4 MCU line
# Copyright (c) 2016 Open-RnD Sp. z o.o.
# Copyright (c) 2016 BayLibre, SAS
# Copyright (c) 2019 Centaur Analytics, Inc
# Copyright (c) 2019 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32L4X
bool
select SOC_FAMILY_STM32
config SOC_SERIES
default "stm32l4" if SOC_SERIES_STM32L4X
config SOC_STM32L412XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L422XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L431XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L432XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L433XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L451XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L452XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L462XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L471XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L475XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L476XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L486XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L496XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L4A6XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L4P5XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L4Q5XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L4S5XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L4R5XX
bool
select SOC_SERIES_STM32L4X
config SOC_STM32L4R9XX
bool
select SOC_SERIES_STM32L4X
config SOC
default "stm32l412xx" if SOC_STM32L412XX
default "stm32l422xx" if SOC_STM32L422XX
default "stm32l431xx" if SOC_STM32L431XX
default "stm32l432xx" if SOC_STM32L432XX
default "stm32l433xx" if SOC_STM32L433XX
default "stm32l451xx" if SOC_STM32L451XX
default "stm32l452xx" if SOC_STM32L452XX
default "stm32l462xx" if SOC_STM32L462XX
default "stm32l471xx" if SOC_STM32L471XX
default "stm32l475xx" if SOC_STM32L475XX
default "stm32l476xx" if SOC_STM32L476XX
default "stm32l486xx" if SOC_STM32L486XX
default "stm32l496xx" if SOC_STM32L496XX
default "stm32l4a6xx" if SOC_STM32L4A6XX
default "stm32l4p5xx" if SOC_STM32L4P5XX
default "stm32l4q5xx" if SOC_STM32L4Q5XX
default "stm32l4s5xx" if SOC_STM32L4S5XX
default "stm32l4r5xx" if SOC_STM32L4R5XX
default "stm32l4r9xx" if SOC_STM32L4R9XX

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

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

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

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

Loading…
Cancel
Save