From 6e3bae727bfcc24ebbb460f6a9b6845e151137a5 Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Sun, 15 Oct 2023 11:01:14 +0200 Subject: [PATCH] soc: st: Add all missing stm32l010 SoCs Add minimal SoC entries to enable the whole stm32l010 family. Signed-off-by: Gerson Fernando Budke --- .../st_stm32/stm32l0/Kconfig.defconfig.stm32l010x4 | 14 ++++++++++++++ .../st_stm32/stm32l0/Kconfig.defconfig.stm32l010x6 | 14 ++++++++++++++ .../st_stm32/stm32l0/Kconfig.defconfig.stm32l010x8 | 14 ++++++++++++++ soc/arm/st_stm32/stm32l0/Kconfig.soc | 10 ++++++++++ 4 files changed, 52 insertions(+) create mode 100644 soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x4 create mode 100644 soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x6 create mode 100644 soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x8 diff --git a/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x4 b/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x4 new file mode 100644 index 00000000000..779d2624508 --- /dev/null +++ b/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x4 @@ -0,0 +1,14 @@ +# ST Microelectronics STM32L010XX MCU +# +# Copyright (c) 2023 OS Systems +# SPDX-License-Identifier: Apache-2.0 + +if SOC_STM32L010X4 + +config SOC + default "stm32l010x4" + +config NUM_IRQS + default 30 + +endif # SOC_STM32L010X4 diff --git a/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x6 b/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x6 new file mode 100644 index 00000000000..dd86c005ad8 --- /dev/null +++ b/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x6 @@ -0,0 +1,14 @@ +# ST Microelectronics STM32L010XX MCU +# +# Copyright (c) 2023 OS Systems +# SPDX-License-Identifier: Apache-2.0 + +if SOC_STM32L010X6 + +config SOC + default "stm32l010x6" + +config NUM_IRQS + default 30 + +endif # SOC_STM32L010X6 diff --git a/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x8 b/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x8 new file mode 100644 index 00000000000..20dd0b0c09a --- /dev/null +++ b/soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l010x8 @@ -0,0 +1,14 @@ +# ST Microelectronics STM32L010XX MCU +# +# Copyright (c) 2023 OS Systems +# SPDX-License-Identifier: Apache-2.0 + +if SOC_STM32L010X8 + +config SOC + default "stm32l010x8" + +config NUM_IRQS + default 30 + +endif # SOC_STM32L010X8 diff --git a/soc/arm/st_stm32/stm32l0/Kconfig.soc b/soc/arm/st_stm32/stm32l0/Kconfig.soc index 48f7a447866..0baab0cf2b9 100644 --- a/soc/arm/st_stm32/stm32l0/Kconfig.soc +++ b/soc/arm/st_stm32/stm32l0/Kconfig.soc @@ -2,6 +2,7 @@ # Copyright (c) 2018 Endre Karlson # Copyright (c) 2021 Nomono AS +# Copyright (c) 2023 OS Systems # # SPDX-License-Identifier: Apache-2.0 @@ -9,6 +10,15 @@ choice prompt "STM32L0x MCU Selection" depends on SOC_SERIES_STM32L0X +config SOC_STM32L010X4 + bool "STM32L010X4" + +config SOC_STM32L010X6 + bool "STM32L010X6" + +config SOC_STM32L010X8 + bool "STM32L010X8" + config SOC_STM32L010XB bool "STM32L010XB"