soc: arm: stm32g0: add STM32G031 SoC series

This commit adds support for the STM32G031xx SoCs
by STMicroelectronics.

Signed-off-by: Filip Brozovic <fbrozovic@gmail.com>
This commit is contained in:
Filip Brozovic 2019-10-07 08:35:35 +02:00 committed by Carles Cufí
commit e541e63653
4 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2019 SEAL AG
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/g0/stm32g0.dtsi>

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2019 SEAL AG
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/g0/stm32g031.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(8)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(32)>;
};
};
};
};

View file

@ -0,0 +1,16 @@
# STMicroelectronics STM32G031xx MCU
# Copyright (c) 2019 SEAL AG
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32G031XX
config SOC
string
default "stm32g031xx"
config NUM_IRQS
int
default 30
endif # SOC_STM32G031XX

View file

@ -8,6 +8,9 @@ choice
prompt "STM32G0x MCU Selection"
depends on SOC_SERIES_STM32G0X
config SOC_STM32G031XX
bool "STM32G031XX"
config SOC_STM32G071XX
bool "STM32G071XX"