arm: stm32f0: introduce STM32F030X4 stuff
The patch adds initial support for STM32F030X4 SoC. STM32F0 Cube package advises to use 'stm32f030x6' code for both STM32F030x4 and STM32F030x6 SoC variants. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
This commit is contained in:
parent
ba9b8dd183
commit
70a14435b0
3 changed files with 44 additions and 0 deletions
22
dts/arm/st/f0/stm32f030X4.dtsi
Normal file
22
dts/arm/st/f0/stm32f030X4.dtsi
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2019 Antony Pavlov <antonynpavlov@gmail.com>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <mem.h>
|
||||||
|
#include <st/f0/stm32f030.dtsi>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
sram0: memory@20000000 {
|
||||||
|
reg = <0x20000000 DT_SIZE_K(4)>;
|
||||||
|
};
|
||||||
|
|
||||||
|
soc {
|
||||||
|
flash-controller@40022000 {
|
||||||
|
flash0: flash@8000000 {
|
||||||
|
reg = <0x08000000 DT_SIZE_K(16)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
19
soc/arm/st_stm32/stm32f0/Kconfig.defconfig.stm32f030x4
Normal file
19
soc/arm/st_stm32/stm32f0/Kconfig.defconfig.stm32f030x4
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 Antony Pavlov <antonynpavlov@gmail.com>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
if SOC_STM32F030X4
|
||||||
|
|
||||||
|
# STM32F0 Cube package advises to use 'stm32f030x6' code
|
||||||
|
# for both STM32F030x4 and STM32F030x6 SoC variants.
|
||||||
|
config SOC
|
||||||
|
string
|
||||||
|
default "stm32f030x6"
|
||||||
|
|
||||||
|
config NUM_IRQS
|
||||||
|
int
|
||||||
|
default 29
|
||||||
|
|
||||||
|
endif # SOC_STM32F030X4
|
|
@ -9,6 +9,9 @@ choice
|
||||||
prompt "STM32F0x MCU Selection"
|
prompt "STM32F0x MCU Selection"
|
||||||
depends on SOC_SERIES_STM32F0X
|
depends on SOC_SERIES_STM32F0X
|
||||||
|
|
||||||
|
config SOC_STM32F030X4
|
||||||
|
bool "STM32F030X4"
|
||||||
|
|
||||||
config SOC_STM32F030X8
|
config SOC_STM32F030X8
|
||||||
bool "STM32F030X8"
|
bool "STM32F030X8"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue