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:
parent
23a866b828
commit
bcf6d52dd1
3 changed files with 43 additions and 0 deletions
22
dts/arm/st/f4/stm32f401Xc.dtsi
Normal file
22
dts/arm/st/f4/stm32f401Xc.dtsi
Normal 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)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
18
soc/arm/st_stm32/stm32f4/Kconfig.defconfig.stm32f401xc
Normal file
18
soc/arm/st_stm32/stm32f4/Kconfig.defconfig.stm32f401xc
Normal 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
|
|
@ -9,6 +9,9 @@ choice
|
||||||
prompt "STM32F4x MCU Selection"
|
prompt "STM32F4x MCU Selection"
|
||||||
depends on SOC_SERIES_STM32F4X
|
depends on SOC_SERIES_STM32F4X
|
||||||
|
|
||||||
|
config SOC_STM32F401XC
|
||||||
|
bool "STM32F401XC"
|
||||||
|
|
||||||
config SOC_STM32F401XE
|
config SOC_STM32F401XE
|
||||||
bool "STM32F401XE"
|
bool "STM32F401XE"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue