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,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