Skip to content

Commit 53ed9e5

Browse files
jackrosenthalnashif
authored andcommitted
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 <[email protected]>
1 parent e41bdcd commit 53ed9e5

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

dts/arm/st/f0/stm32f098Xc.dtsi

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2019 The Chromium OS Authors
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#include <mem.h>
7+
#include <st/f0/stm32f091.dtsi>
8+
9+
/ {
10+
sram0: memory@20000000 {
11+
reg = <0x20000000 DT_SIZE_K(32)>;
12+
};
13+
14+
soc {
15+
flash-controller@40022000 {
16+
flash0: flash@8000000 {
17+
reg = <0x08000000 DT_SIZE_K(256)>;
18+
};
19+
};
20+
};
21+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# ST Microelectronics STM32F098XX MCU
2+
3+
# Copyright (c) 2019 The Chromium OS Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_STM32F098XX
7+
8+
config SOC
9+
default "stm32f098xx"
10+
11+
config NUM_IRQS
12+
default 31
13+
14+
endif # SOC_STM32F098xx

soc/arm/st_stm32/stm32f0/Kconfig.soc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ config SOC_STM32F072XB
2525
config SOC_STM32F091XC
2626
bool "STM32F091XC"
2727

28+
config SOC_STM32F098XX
29+
bool "STM32F098XX"
30+
2831
endchoice

0 commit comments

Comments
 (0)