arch: arm: soc: stm32l0: add STM32L073xZ SOC
Add initial support for STM32L073xZ SOC which is not very different from already supported STM32L072xZ. Signed-off-by: Ilya Tagunov <tagunil@gmail.com>
This commit is contained in:
parent
6a1cb6540f
commit
b6da79cb82
4 changed files with 44 additions and 0 deletions
31
arch/arm/soc/st_stm32/stm32l0/Kconfig.defconfig.stm32l073xz
Normal file
31
arch/arm/soc/st_stm32/stm32l0/Kconfig.defconfig.stm32l073xz
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Kconfig - ST Microelectronics STM32L073XZ MCU
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 Ilya Tagunov <tagunil@gmail.com>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
if SOC_STM32L073XZ
|
||||||
|
|
||||||
|
config SOC
|
||||||
|
string
|
||||||
|
default stm32l073xx
|
||||||
|
|
||||||
|
config NUM_IRQS
|
||||||
|
int
|
||||||
|
default 32
|
||||||
|
|
||||||
|
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_STM32L073XZ
|
|
@ -12,4 +12,7 @@ depends on SOC_SERIES_STM32L0X
|
||||||
config SOC_STM32L072XZ
|
config SOC_STM32L072XZ
|
||||||
bool "STM32L072XZ"
|
bool "STM32L072XZ"
|
||||||
|
|
||||||
|
config SOC_STM32L073XZ
|
||||||
|
bool "STM32L073XZ"
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
|
@ -85,6 +85,9 @@
|
||||||
#elif defined(CONFIG_SOC_STM32L072XZ)
|
#elif defined(CONFIG_SOC_STM32L072XZ)
|
||||||
#define DT_FLASH_SIZE __SIZE_K(192)
|
#define DT_FLASH_SIZE __SIZE_K(192)
|
||||||
#define DT_SRAM_SIZE __SIZE_K(20)
|
#define DT_SRAM_SIZE __SIZE_K(20)
|
||||||
|
#elif defined(CONFIG_SOC_STM32L073XZ)
|
||||||
|
#define DT_FLASH_SIZE __SIZE_K(192)
|
||||||
|
#define DT_SRAM_SIZE __SIZE_K(20)
|
||||||
#elif defined(CONFIG_SOC_STM32L475XG)
|
#elif defined(CONFIG_SOC_STM32L475XG)
|
||||||
#define DT_FLASH_SIZE __SIZE_K(1024)
|
#define DT_FLASH_SIZE __SIZE_K(1024)
|
||||||
#define DT_SRAM_SIZE __SIZE_K(96)
|
#define DT_SRAM_SIZE __SIZE_K(96)
|
||||||
|
|
7
dts/arm/st/stm32l073.dtsi
Normal file
7
dts/arm/st/stm32l073.dtsi
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2018 Ilya Tagunov <tagunil@gmail.com>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <st/stm32l0.dtsi>
|
Loading…
Add table
Add a link
Reference in a new issue