soc: arm: stm32l1: Add STM32L152Xe stuff

The STM32L151 and STM32L152 differ in that
the STM32L152 features an LCD controller.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
This commit is contained in:
Antony Pavlov 2019-04-23 06:56:03 +03:00 committed by Maureen Helm
commit fc1cdf233d
4 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2019 Antony Pavlov <antonynpavlov@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* The STM32L151 and STM32L152 differ in that
* the STM32L152 features an LCD controller.
*/
#include <st/l1/stm32l151.dtsi>

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2019, 2020 Antony Pavlov <antonynpavlov@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/l1/stm32l152.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(80)>;
};
soc {
flash-controller@40023c00 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(512)>;
};
};
eeprom: eeprom@8080000{
reg = <0x08080000 DT_SIZE_K(16)>;
};
};
};

View file

@ -0,0 +1,29 @@
# ST Microelectronics STM32L152XE MCU
# Copyright (c) 2019 Antony Pavlov <antonynpavlov@gmail.com>
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32L152XE
config SOC
string
default "stm32l152xe"
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_STM32L152XE

View file

@ -16,4 +16,7 @@ config SOC_STM32L151XB
config SOC_STM32L151XBA
bool "STM32L151XBA"
config SOC_STM32L152XE
bool "STM32L152XE"
endchoice