soc: stm32: stm32l0: add stm32l011x4 support

Those MCUs have 2KB RAM and 16KB FLASH memory, but they are still
powerful enough to run small configuration of Zephyr RTOS.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
Marcin Niestroj 2020-05-16 00:05:54 +02:00 committed by Carles Cufí
parent a2c4d82778
commit 406a33682a
4 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2019-2020 Grinn
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/l0/stm32l0.dtsi>
/ {
soc {
eeprom: eeprom@8080000{
reg = <0x08080000 512>;
};
};
};

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2019 Grinn
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/l0/stm32l011.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(2)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(16)>;
};
};
};
};

View file

@ -0,0 +1,14 @@
# ST Microelectronics STM32L011XX MCU
#
# Copyright (c) 2019-2020 Grinn
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32L011XX
config SOC
default "stm32l011xx"
config NUM_IRQS
default 32
endif # SOC_STM32L011XX

View file

@ -7,6 +7,9 @@ choice
prompt "STM32L0x MCU Selection"
depends on SOC_SERIES_STM32L0X
config SOC_STM32L011XX
bool "STM32L011XX"
config SOC_STM32L053XX
bool "STM32L053XX"