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:
parent
9e92babca2
commit
e541e63653
4 changed files with 48 additions and 0 deletions
7
dts/arm/st/g0/stm32g031.dtsi
Normal file
7
dts/arm/st/g0/stm32g031.dtsi
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2019 SEAL AG
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <st/g0/stm32g0.dtsi>
|
22
dts/arm/st/g0/stm32g031X6.dtsi
Normal file
22
dts/arm/st/g0/stm32g031X6.dtsi
Normal 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)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
16
soc/arm/st_stm32/stm32g0/Kconfig.defconfig.stm32g031xx
Normal file
16
soc/arm/st_stm32/stm32g0/Kconfig.defconfig.stm32g031xx
Normal 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
|
|
@ -8,6 +8,9 @@ choice
|
||||||
prompt "STM32G0x MCU Selection"
|
prompt "STM32G0x MCU Selection"
|
||||||
depends on SOC_SERIES_STM32G0X
|
depends on SOC_SERIES_STM32G0X
|
||||||
|
|
||||||
|
config SOC_STM32G031XX
|
||||||
|
bool "STM32G031XX"
|
||||||
|
|
||||||
config SOC_STM32G071XX
|
config SOC_STM32G071XX
|
||||||
bool "STM32G071XX"
|
bool "STM32G071XX"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue