arm: stm32f4: Add basic support for STM32F413
Add necessary Kconfig and minimal device tree in order to support STM32F413xH variants as found on the Nucleo STM32F413 board. Origin: Original Change-Id: I60230c240d6acb610f16a02c62048d448476e9c5 Signed-off-by: Florian Vaussard <florian.vaussard@heig-vd.ch>
This commit is contained in:
parent
04c8709355
commit
0b9f6a25ed
4 changed files with 31 additions and 0 deletions
18
arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f413xx
Normal file
18
arch/arm/soc/st_stm32/stm32f4/Kconfig.defconfig.stm32f413xx
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Kconfig - ST STM32F413XH MCU configuration options
|
||||
#
|
||||
# Copyright (c) 2017 Florian Vaussard, HEIG-VD
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if SOC_STM32F413XH
|
||||
|
||||
config SOC
|
||||
string
|
||||
default stm32f413xx
|
||||
|
||||
config NUM_IRQS
|
||||
int
|
||||
default 102
|
||||
|
||||
endif # SOC_STM32F413XH
|
|
@ -18,6 +18,9 @@ config SOC_STM32F407XG
|
|||
config SOC_STM32F411XE
|
||||
bool "STM32F411XE"
|
||||
|
||||
config SOC_STM32F413XH
|
||||
bool "STM32F413XH"
|
||||
|
||||
config SOC_STM32F429XI
|
||||
bool "STM32F429XI"
|
||||
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
#elif defined(CONFIG_SOC_STM32F411XE)
|
||||
#define DT_FLASH_SIZE __SIZE_K(512)
|
||||
#define DT_SRAM_SIZE __SIZE_K(128)
|
||||
#elif defined(CONFIG_SOC_STM32F413XH)
|
||||
#define DT_FLASH_SIZE __SIZE_K(1536)
|
||||
#define DT_SRAM_SIZE __SIZE_K(320)
|
||||
#elif defined(CONFIG_SOC_STM32F429XI)
|
||||
#define DT_FLASH_SIZE __SIZE_K(2048)
|
||||
#define DT_SRAM_SIZE __SIZE_K(256)
|
||||
|
|
7
dts/arm/st/stm32f413.dtsi
Normal file
7
dts/arm/st/stm32f413.dtsi
Normal file
|
@ -0,0 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2017 Florian Vaussard, HEIG-VD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <st/stm32f4.dtsi>
|
Loading…
Add table
Add a link
Reference in a new issue