Skip to content

Commit 1a45eb6

Browse files
karlpMaureenHelm
authored andcommitted
dts: stm32/l1: add xx8-A parts
The -A parts have more flash and ram than the original part numbers. Signed-off-by: Karl Palsson <[email protected]>
1 parent 79b15e3 commit 1a45eb6

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

dts/arm/st/l1/stm32l151X8-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 eTactica ehf
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(64)>;
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 STM32L151X8-A MCU
2+
#
3+
# Copyright (c) 2019 eTactica ehf
4+
#
5+
# SPDX-License-Identifier: Apache-2.0
6+
#
7+
8+
if SOC_STM32L151X8A
9+
10+
config SOC
11+
string
12+
default "stm32l151x8a"
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_STM32L151X8A

soc/arm/st_stm32/stm32l1/Kconfig.soc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ choice
99
prompt "STM32L1x MCU Selection"
1010
depends on SOC_SERIES_STM32L1X
1111

12+
config SOC_STM32L151X8A
13+
bool "STM32L151X8A"
14+
1215
config SOC_STM32L151XB
1316
bool "STM32L151XB"
1417

0 commit comments

Comments
 (0)