soc: stm32f0: Add support for STM32F098xx SOC

This adds a Kconfig options and device tree configs for the STM32F098
series of SoC.

Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
This commit is contained in:
Jack Rosenthal 2019-11-06 15:07:52 -07:00 committed by Anas Nashif
commit 53ed9e57a2
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2019 The Chromium OS Authors
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/f0/stm32f091.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(32)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(256)>;
};
};
};
};

View file

@ -0,0 +1,14 @@
# ST Microelectronics STM32F098XX MCU
# Copyright (c) 2019 The Chromium OS Authors
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32F098XX
config SOC
default "stm32f098xx"
config NUM_IRQS
default 31
endif # SOC_STM32F098xx

View file

@ -25,4 +25,7 @@ config SOC_STM32F072XB
config SOC_STM32F091XC
bool "STM32F091XC"
config SOC_STM32F098XX
bool "STM32F098XX"
endchoice