dtsi/Kconfig: arm: st: Add dtsi and Kconfig for SOC variant STM32F401XC

This PR adds the dtsi and Kconfig for the SOC variant STM32F401XC.

Signed-off-by: NavinSankar Velliangiri <navin@linumiz.com>
This commit is contained in:
NavinSankar Velliangiri 2019-10-06 13:26:01 +05:30 committed by Maureen Helm
commit bcf6d52dd1
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2019 Linumiz
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/f4/stm32f401.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(64)>;
};
soc {
flash-controller@40023c00 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(256)>;
};
};
};
};

View file

@ -0,0 +1,18 @@
# Kconfig - ST STM32F401CC MCU configuration options
#
# Copyright (c) 2019 Linumiz
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_STM32F401XC
config SOC
string
default "stm32f401xc"
config NUM_IRQS
int
default 85
endif # SOC_STM32F401XC

View file

@ -9,6 +9,9 @@ choice
prompt "STM32F4x MCU Selection"
depends on SOC_SERIES_STM32F4X
config SOC_STM32F401XC
bool "STM32F401XC"
config SOC_STM32F401XE
bool "STM32F401XE"