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:
parent
22326f6d99
commit
fc1cdf233d
4 changed files with 69 additions and 0 deletions
11
dts/arm/st/l1/stm32l152.dtsi
Normal file
11
dts/arm/st/l1/stm32l152.dtsi
Normal 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>
|
26
dts/arm/st/l1/stm32l152Xe.dtsi
Normal file
26
dts/arm/st/l1/stm32l152Xe.dtsi
Normal 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)>;
|
||||
};
|
||||
};
|
||||
};
|
29
soc/arm/st_stm32/stm32l1/Kconfig.defconfig.stm32l152xe
Normal file
29
soc/arm/st_stm32/stm32l1/Kconfig.defconfig.stm32l152xe
Normal 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
|
|
@ -16,4 +16,7 @@ config SOC_STM32L151XB
|
|||
config SOC_STM32L151XBA
|
||||
bool "STM32L151XBA"
|
||||
|
||||
config SOC_STM32L152XE
|
||||
bool "STM32L152XE"
|
||||
|
||||
endchoice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue