soc: arm: st_stm32: stm32l0: Add support for STM32L081
Add support for the STM32L081xx soc series. Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>
This commit is contained in:
parent
2283b02ce4
commit
8242ef0a37
4 changed files with 53 additions and 0 deletions
13
dts/arm/st/l0/stm32l081.dtsi
Normal file
13
dts/arm/st/l0/stm32l081.dtsi
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 Caspar Friedrich <c.s.w.friedrich@gmail.com>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <st/l0/stm32l071.dtsi>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
soc {
|
||||||
|
compatible = "st,stm32l081", "st,stm32l0", "simple-bus";
|
||||||
|
};
|
||||||
|
};
|
22
dts/arm/st/l0/stm32l081Xz.dtsi
Normal file
22
dts/arm/st/l0/stm32l081Xz.dtsi
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 Caspar Friedrich <c.s.w.friedrich@gmail.com>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <mem.h>
|
||||||
|
#include <st/l0/stm32l081.dtsi>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
sram0: memory@20000000 {
|
||||||
|
reg = <0x20000000 DT_SIZE_K(20)>;
|
||||||
|
};
|
||||||
|
|
||||||
|
soc {
|
||||||
|
flash-controller@40022000 {
|
||||||
|
flash0: flash@8000000 {
|
||||||
|
reg = <0x08000000 DT_SIZE_K(192)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
14
soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l081xx
Normal file
14
soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l081xx
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# ST Microelectronics STM32L081XX MCU
|
||||||
|
|
||||||
|
# Copyright (c) 2023 Caspar Friedrich <c.s.w.friedrich@gmail.com>
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
if SOC_STM32L081XX
|
||||||
|
|
||||||
|
config SOC
|
||||||
|
default "stm32l081xx"
|
||||||
|
|
||||||
|
config NUM_IRQS
|
||||||
|
default 32
|
||||||
|
|
||||||
|
endif # SOC_STM32L081XX
|
|
@ -38,4 +38,8 @@ config SOC_STM32L073XX
|
||||||
bool "STM32L073XX"
|
bool "STM32L073XX"
|
||||||
select CPU_HAS_ARM_MPU
|
select CPU_HAS_ARM_MPU
|
||||||
|
|
||||||
|
config SOC_STM32L081XX
|
||||||
|
bool "STM32L081XX"
|
||||||
|
select CPU_HAS_ARM_MPU
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue