Skip to content

Commit 1cfde99

Browse files
soc: arm: stm32: Add support for STM32L151XB-A SoC
STM32L151XB-A SoC is almost similar to the STM32L151XB SoC except that it has more RAM (32KiB). Hence add devicetree and Kconfig support. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
1 parent 4f5d621 commit 1cfde99

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

dts/arm/st/l1/stm32l151Xb-a.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright (c) 2019 Linaro Limited
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <mem.h>
8+
#include <st/l1/stm32l151.dtsi>
9+
10+
/ {
11+
sram0: memory@20000000 {
12+
reg = <0x20000000 DT_SIZE_K(32)>;
13+
};
14+
15+
soc {
16+
flash-controller@40023c00 {
17+
flash0: flash@8000000 {
18+
reg = <0x08000000 DT_SIZE_K(128)>;
19+
};
20+
};
21+
};
22+
};
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Kconfig - ST Microelectronics STM32L151XB-A MCU
2+
#
3+
# Copyright (c) 2019 Linaro Ltd.
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
if SOC_STM32L151XBA
9+
10+
config SOC
11+
string
12+
default "stm32l151xba"
13+
14+
config NUM_IRQS
15+
int
16+
default 45
17+
18+
if GPIO_STM32
19+
20+
config GPIO_STM32_PORTD
21+
default y
22+
23+
config GPIO_STM32_PORTE
24+
default y
25+
26+
config GPIO_STM32_PORTH
27+
default y
28+
29+
endif # GPIO_STM32
30+
31+
endif # SOC_STM32L151XBA

soc/arm/st_stm32/stm32l1/Kconfig.soc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ config SOC_STM32L151X8A
1515
config SOC_STM32L151XB
1616
bool "STM32L151XB"
1717

18+
config SOC_STM32L151XBA
19+
bool "STM32L151XBA"
20+
1821
endchoice

0 commit comments

Comments
 (0)