From 8e6ebdb0909d84f157d5f0e6f526439beb35f407 Mon Sep 17 00:00:00 2001 From: Erwin Rol Date: Sat, 5 Aug 2017 11:02:45 +0200 Subject: [PATCH] arm: support for stm32f417 SOC Signed-off-by: Erwin Rol --- .../stm32f4/Kconfig.defconfig.stm32f417xe | 19 +++++++++++++++++++ .../stm32f4/Kconfig.defconfig.stm32f417xg | 18 ++++++++++++++++++ arch/arm/soc/st_stm32/stm32f4/Kconfig.soc | 6 ++++++ dts/arm/st/mem.h | 6 ++++++ dts/arm/st/stm32f417.dtsi | 8 ++++++++ 5 files changed, 57 insertions(+) create mode 100644 arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f417xe create mode 100644 arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f417xg create mode 100644 dts/arm/st/stm32f417.dtsi diff --git a/arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f417xe b/arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f417xe new file mode 100644 index 0000000000..e3182f8ad3 --- /dev/null +++ b/arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f417xe @@ -0,0 +1,19 @@ +# Kconfig - ST STM32F417XE MCU configuration options +# +# Copyright (c) 2016 Linaro Limited. +# +# SPDX-License-Identifier: Apache-2.0 +# + +if SOC_STM32F417XE + +config SOC + string + default stm32f417xx + +config NUM_IRQS + int + default 82 + +endif # SOC_STM32F417XE + diff --git a/arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f417xg b/arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f417xg new file mode 100644 index 0000000000..ba4cc84405 --- /dev/null +++ b/arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f417xg @@ -0,0 +1,18 @@ +# Kconfig - ST STM32F417XG MCU configuration options +# +# Copyright (c) 2016 Linaro Limited. +# +# SPDX-License-Identifier: Apache-2.0 +# + +if SOC_STM32F417XG + +config SOC + string + default stm32f417xx + +config NUM_IRQS + int + default 82 + +endif # SOC_STM32F417XG diff --git a/arch/arm/soc/st_stm32/stm32f4/Kconfig.soc b/arch/arm/soc/st_stm32/stm32f4/Kconfig.soc index 8bd84f03c9..985abf8050 100644 --- a/arch/arm/soc/st_stm32/stm32f4/Kconfig.soc +++ b/arch/arm/soc/st_stm32/stm32f4/Kconfig.soc @@ -27,6 +27,12 @@ config SOC_STM32F412ZG config SOC_STM32F413XH bool "STM32F413XH" +config SOC_STM32F417XE + bool "STM32F417XE" + +config SOC_STM32F417XG + bool "STM32F417XG" + config SOC_STM32F429XI bool "STM32F429XI" diff --git a/dts/arm/st/mem.h b/dts/arm/st/mem.h index 62a4b1e0a8..6ae4263311 100644 --- a/dts/arm/st/mem.h +++ b/dts/arm/st/mem.h @@ -47,6 +47,12 @@ #elif defined(CONFIG_SOC_STM32F413XH) #define DT_FLASH_SIZE __SIZE_K(1536) #define DT_SRAM_SIZE __SIZE_K(320) +#elif defined(CONFIG_SOC_STM32F417XE) +#define DT_FLASH_SIZE __SIZE_K(512) +#define DT_SRAM_SIZE __SIZE_K(192) +#elif defined(CONFIG_SOC_STM32F417XG) +#define DT_FLASH_SIZE __SIZE_K(1024) +#define DT_SRAM_SIZE __SIZE_K(192) #elif defined(CONFIG_SOC_STM32F429XI) #define DT_FLASH_SIZE __SIZE_K(2048) #define DT_SRAM_SIZE __SIZE_K(256) diff --git a/dts/arm/st/stm32f417.dtsi b/dts/arm/st/stm32f417.dtsi new file mode 100644 index 0000000000..5c15178470 --- /dev/null +++ b/dts/arm/st/stm32f417.dtsi @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2017 Linaro Limited + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include +