From 10b350d854e2c725ec6984d6fe2a1d8e2b11c6ae Mon Sep 17 00:00:00 2001 From: Adam Podogrocki Date: Fri, 28 Oct 2016 09:48:14 +0200 Subject: [PATCH] soc/stm32f1: Add the new type of SoC STM32F107 This patch provides initial support for the SoC STM32F107. This SoC belongs to the Connectivity Line devices. Connectivity line family incorporates up to 14 communication interfaces such as: 2 x I2C, 5 x USART, 3 x SPI, 2 x CAN, USB 2.0, 10/100 Ethernet MAC. Change-Id: I5cb2c458bce9ec1558b4168e87a7003ad9f606a5 Signed-off-by: Adam Podogrocki Signed-off-by: Kumar Gala --- .../stm32f1/Kconfig.defconfig.stm32f107xc | 34 +++++++++++++++++++ arch/arm/soc/st_stm32/stm32f1/Kconfig.soc | 24 +++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 arch/arm/soc/st_stm32/stm32f1/Kconfig.defconfig.stm32f107xc diff --git a/arch/arm/soc/st_stm32/stm32f1/Kconfig.defconfig.stm32f107xc b/arch/arm/soc/st_stm32/stm32f1/Kconfig.defconfig.stm32f107xc new file mode 100644 index 00000000000..7aa0c56b214 --- /dev/null +++ b/arch/arm/soc/st_stm32/stm32f1/Kconfig.defconfig.stm32f107xc @@ -0,0 +1,34 @@ +# Kconfig - ST Microelectronics STM32F107XC MCU +# +# Copyright (c) 2016 RnDity Sp. z o.o. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +if SOC_STM32F107XC + +config SOC + string + default stm32f107xc + +config SRAM_SIZE + default 64 + +config FLASH_SIZE + default 256 + +config NUM_IRQS + int + default 68 + +endif # SOC_STM32F107XC diff --git a/arch/arm/soc/st_stm32/stm32f1/Kconfig.soc b/arch/arm/soc/st_stm32/stm32f1/Kconfig.soc index 07ead7a7332..f307369e9b8 100644 --- a/arch/arm/soc/st_stm32/stm32f1/Kconfig.soc +++ b/arch/arm/soc/st_stm32/stm32f1/Kconfig.soc @@ -1,6 +1,7 @@ # Kconfig - ST Microelectronics STM32F1 MCU line # # Copyright (c) 2016 Open-RnD Sp. z o.o. +# Copyright (c) RnDity Sp. z o.o. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,8 +22,31 @@ depends on SOC_SERIES_STM32F1X config SOC_STM32F103XE bool "STM32F103XE" + select SOC_STM32F10X_DENSITY_DEVICE config SOC_STM32F103XB bool "STM32F103XB" + select SOC_STM32F10X_DENSITY_DEVICE + +config SOC_STM32F107XC + bool "STM32F107XC" + select SOC_STM32F10X_CONNECTIVITY_LINE_DEVICE endchoice + +config SOC_STM32F10X_DENSITY_DEVICE + bool + help + * Low density Value line devices + * Medium density Value line devices + * High density Value line devices + * XL-density devices Value line devices + +config SOC_STM32F10X_CONNECTIVITY_LINE_DEVICE + bool + help + Connectivity line devices are STM32F105xx and STM32F107xx + microcontrollers. They are intended for applications where + connectivity and real-time performances are required such as + industrial control, control panels for security applications, UPS or + home audio. For STM32F107xx also the Ethernet MAC is available.