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:
Antony Pavlov 2019-04-18 23:57:50 +03:00 committed by Maureen Helm
commit 70a14435b0
3 changed files with 44 additions and 0 deletions

View 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)>;
};
};
};
};

View 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

View file

@ -9,6 +9,9 @@ choice
prompt "STM32F0x MCU Selection"
depends on SOC_SERIES_STM32F0X
config SOC_STM32F030X4
bool "STM32F030X4"
config SOC_STM32F030X8
bool "STM32F030X8"