soc: Add support for STM32F072X8

Adds support for the STM32F072X8 SOC, which is a variant of the
existing STM32F072XB with less flash.

Signed-off-by: Jonas Otto <jonas@jonasotto.com>
This commit is contained in:
Jonas Otto 2023-09-09 20:55:01 +02:00 committed by Fabio Baltieri
commit 2baac8e769
3 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2023 Jonas Otto
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/f0/stm32f072.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(16)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(64)>;
};
};
};
};

View file

@ -3,7 +3,7 @@
# Copyright (c) 2017 BayLibre, SAS
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32F072XB
if SOC_STM32F072X8 || SOC_STM32F072XB
config SOC
default "stm32f072xb"
@ -11,4 +11,4 @@ config SOC
config NUM_IRQS
default 32
endif # SOC_STM32F072XB
endif # SOC_STM32F072X8 || SOC_STM32F072XB

View file

@ -31,6 +31,9 @@ config SOC_STM32F051X8
config SOC_STM32F070XB
bool "STM32F070XB"
config SOC_STM32F072X8
bool "STM32F072X8"
config SOC_STM32F072XB
bool "STM32F072XB"