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:
Ilya Tagunov 2018-03-11 17:47:30 +03:00 committed by Kumar Gala
commit b6da79cb82
4 changed files with 44 additions and 0 deletions

View 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

View file

@ -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

View file

@ -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)

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2018 Ilya Tagunov <tagunil@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/stm32l0.dtsi>