Browse Source

soc: v2: stm32: Migrate STM32F2 series

Port STM32F2 series to HW model V2

Signed-off-by: Francois Ramu <francois.ramu@st.com>
pull/69687/head
Francois Ramu 1 year ago committed by Carles Cufi
parent
commit
b987093a80
  1. 16
      soc/soc_legacy/arm/st_stm32/stm32f2/Kconfig.soc
  2. 4
      soc/st/stm32/soc.yml
  3. 2
      soc/st/stm32/stm32f2/CMakeLists.txt
  4. 6
      soc/st/stm32/stm32f2/Kconfig
  5. 7
      soc/st/stm32/stm32f2/Kconfig.defconfig
  6. 5
      soc/st/stm32/stm32f2/Kconfig.defconfig.stm32f205xx
  7. 5
      soc/st/stm32/stm32f2/Kconfig.defconfig.stm32f207xx
  8. 23
      soc/st/stm32/stm32f2/Kconfig.soc
  9. 0
      soc/st/stm32/stm32f2/soc.c
  10. 0
      soc/st/stm32/stm32f2/soc.h

16
soc/soc_legacy/arm/st_stm32/stm32f2/Kconfig.soc

@ -1,16 +0,0 @@ @@ -1,16 +0,0 @@
# ST Microelectronics stm32f2 MCU line
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
# SPDX-License-Identifier: Apache-2.0
choice
prompt "STM32F2X MCU Selection"
depends on SOC_SERIES_STM32F2X
config SOC_STM32F207XX
bool "STM32F207XX"
config SOC_STM32F205XX
bool "STM32F205XX"
endchoice

4
soc/st/stm32/soc.yml

@ -24,6 +24,10 @@ family: @@ -24,6 +24,10 @@ family:
- name: stm32f103xe
- name: stm32f105xc
- name: stm32f107xc
- name: stm32f2x
socs:
- name: stm32f205xx
- name: stm32f207xx
- name: stm32f3x
socs:
- name: stm32f302x8

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

@ -5,4 +5,6 @@ zephyr_sources( @@ -5,4 +5,6 @@ zephyr_sources(
soc.c
)
zephyr_include_directories(.)
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")

6
soc/soc_legacy/arm/st_stm32/stm32f2/Kconfig.series → soc/st/stm32/stm32f2/Kconfig

@ -1,16 +1,12 @@ @@ -1,16 +1,12 @@
# ST Microelectronics STM32F2X MCU series
# STMicroelectronics STM32F2X MCU series
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32F2X
bool "STM32F2x Series MCU"
select ARM
select CPU_CORTEX_M3
select CPU_CORTEX_M_HAS_DWT
select SOC_FAMILY_STM32
select HAS_STM32CUBE
select HAS_SWO
select CPU_HAS_ARM_MPU
help
Enable support for stm32f2 MCU series

7
soc/soc_legacy/arm/st_stm32/stm32f2/Kconfig.defconfig.series → soc/st/stm32/stm32f2/Kconfig.defconfig

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
# ST Microelectronics STM32F2 MCU line
# STMicroelectronics STM32F2 MCU line
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
# SPDX-License-Identifier: Apache-2.0
@ -7,9 +7,6 @@ @@ -7,9 +7,6 @@
if SOC_SERIES_STM32F2X
source "soc/soc_legacy/arm/st_stm32/stm32f2/Kconfig.defconfig.stm32f2*"
config SOC_SERIES
default "stm32f2"
rsource "Kconfig.defconfig.stm32f2*"
endif # SOC_SERIES_STM32F2X

5
soc/soc_legacy/arm/st_stm32/stm32f2/Kconfig.defconfig.stm32f205xx → soc/st/stm32/stm32f2/Kconfig.defconfig.stm32f205xx

@ -1,13 +1,10 @@ @@ -1,13 +1,10 @@
# ST Microelectronics stm32f205 MCU
# STMicroelectronics stm32f205 MCU
# Copyright (c) 2021 Manuel Forcen <manuforcen@gmail.com
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32F205XX
config SOC
default "STM32F205xx"
config NUM_IRQS
default 81

5
soc/soc_legacy/arm/st_stm32/stm32f2/Kconfig.defconfig.stm32f207xx → soc/st/stm32/stm32f2/Kconfig.defconfig.stm32f207xx

@ -1,13 +1,10 @@ @@ -1,13 +1,10 @@
# ST Microelectronics stm32f207 MCU
# STMicroelectronics stm32f207 MCU
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32F207XX
config SOC
default "STM32F207xx"
config NUM_IRQS
default 81

23
soc/st/stm32/stm32f2/Kconfig.soc

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
# STMicroelectronics stm32f2 MCU line
# Copyright (c) 2018 qianfan Zhao <qianfanguijin@163.com>
# SPDX-License-Identifier: Apache-2.0
config SOC_SERIES_STM32F2X
bool
select SOC_FAMILY_STM32
config SOC_SERIES
default "stm32f2" if SOC_SERIES_STM32F2X
config SOC_STM32F205XX
bool
select SOC_SERIES_STM32F2X
config SOC_STM32F207XX
bool
select SOC_SERIES_STM32F2X
config SOC
default "stm32f205xx" if SOC_STM32F205XX
default "stm32f207xx" if SOC_STM32F207XX

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

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

Loading…
Cancel
Save