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 <karlp@etactica.com>
This commit is contained in:
Karl Palsson 2019-10-04 00:10:46 +00:00 committed by Maureen Helm
commit 1a45eb67d1
3 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2019 eTactica ehf
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/l1/stm32l151.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(32)>;
};
soc {
flash-controller@40023c00 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(64)>;
};
};
};
};

View file

@ -0,0 +1,31 @@
# Kconfig - ST Microelectronics STM32L151X8-A MCU
#
# Copyright (c) 2019 eTactica ehf
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_STM32L151X8A
config SOC
string
default "stm32l151x8a"
config NUM_IRQS
int
default 45
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L151X8A

View file

@ -9,6 +9,9 @@ choice
prompt "STM32L1x MCU Selection"
depends on SOC_SERIES_STM32L1X
config SOC_STM32L151X8A
bool "STM32L151X8A"
config SOC_STM32L151XB
bool "STM32L151XB"