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>
This commit is contained in:
Manivannan Sadhasivam 2019-10-16 21:22:33 +05:30 committed by Maureen Helm
commit bf949409b8
3 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2019 Linaro Limited
*
* 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(128)>;
};
};
};
};

View file

@ -0,0 +1,31 @@
# Kconfig - ST Microelectronics STM32L151XB-A MCU
#
# Copyright (c) 2019 Linaro Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_STM32L151XBA
config SOC
string
default "stm32l151xba"
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_STM32L151XBA

View file

@ -15,4 +15,7 @@ config SOC_STM32L151X8A
config SOC_STM32L151XB
bool "STM32L151XB"
config SOC_STM32L151XBA
bool "STM32L151XBA"
endchoice