soc: arm: st_stm32: add support for STM32L462xE

Add support for the STM32L462xE SoC (AES not yet supported).

Signed-off-by: Giancarlo Stasi <giancarlo.stasi.co@gmail.com>
This commit is contained in:
Giancarlo Stasi 2020-03-20 16:05:04 +01:00 committed by Ioannis Glaropoulos
commit 2f3c3a65fd
4 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2020 Giancarlo Stasi
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/l4/stm32l452.dtsi>

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2020 Giancarlo Stasi
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/l4/stm32l462.dtsi>
/ {
sram0: memory@20000000 {
reg = <0x20000000 DT_SIZE_K(160)>;
};
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(512)>;
};
};
};
};

View file

@ -0,0 +1,24 @@
# ST Microelectronics STM32L462XX MCU
# Copyright (c) 2020 Giancarlo Stasi
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32L462XX
config SOC
default "stm32l462xx"
config NUM_IRQS
default 85
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
endif # GPIO_STM32
endif # SOC_STM32L462XX

View file

@ -25,6 +25,9 @@ config SOC_STM32L433XX
config SOC_STM32L452XX config SOC_STM32L452XX
bool "STM32L452XX" bool "STM32L452XX"
config SOC_STM32L462XX
bool "STM32L462XX"
config SOC_STM32L475XX config SOC_STM32L475XX
bool "STM32L475XX" bool "STM32L475XX"