Skip to content

Commit

Permalink
soc: arm: st_stm32: stm32l0: Add support for STM32L081
Browse files Browse the repository at this point in the history
Add support for the STM32L081xx soc series.

Signed-off-by: Caspar Friedrich <[email protected]>
  • Loading branch information
casparfriedrich authored and carlescufi committed Nov 6, 2023
1 parent 2283b02 commit 8242ef0
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dts/arm/st/l0/stm32l081.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) 2023 Caspar Friedrich <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <st/l0/stm32l071.dtsi>

/ {
soc {
compatible = "st,stm32l081", "st,stm32l0", "simple-bus";
};
};
22 changes: 22 additions & 0 deletions dts/arm/st/l0/stm32l081Xz.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2023 Caspar Friedrich <[email protected]>
*
* 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 changes: 14 additions & 0 deletions soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l081xx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ST Microelectronics STM32L081XX MCU

# Copyright (c) 2023 Caspar Friedrich <[email protected]>
# SPDX-License-Identifier: Apache-2.0

if SOC_STM32L081XX

config SOC
default "stm32l081xx"

config NUM_IRQS
default 32

endif # SOC_STM32L081XX
4 changes: 4 additions & 0 deletions soc/arm/st_stm32/stm32l0/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ config SOC_STM32L073XX
bool "STM32L073XX"
select CPU_HAS_ARM_MPU

config SOC_STM32L081XX
bool "STM32L081XX"
select CPU_HAS_ARM_MPU

endchoice

0 comments on commit 8242ef0

Please sign in to comment.