soc: arm: st: add stm32l4r9xx support

Add support for ST stm32l4r9xx System-on-Chip.

See http://www.st.com/en/microcontrollers/stm32l4r9-s9.html
for more details.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2019-09-16 11:17:27 +02:00 committed by Kumar Gala
commit 79c24e3e5e
4 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,9 @@
/*
* Copyright (c) 2019 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/l4/stm32l4r5.dtsi>

View file

@ -0,0 +1,18 @@
/*
* Copyright (c) 2019 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <st/l4/stm32l4r9.dtsi>
/ {
soc {
flash-controller@40022000 {
flash0: flash@8000000 {
reg = <0x08000000 DT_SIZE_K(2048)>;
};
};
};
};

View file

@ -0,0 +1,34 @@
# Kconfig - ST Microelectronics STM32L4R9xx MCU
#
# Copyright (c) 2019 STMicroelectronics
#
# SPDX-License-Identifier: Apache-2.0
#
if SOC_STM32L4R9XX
config SOC
string
default "stm32l4r9xx"
config NUM_IRQS
int
default 95
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
endif # SOC_STM32L4R9XX

View file

@ -3,6 +3,7 @@
# Copyright (c) 2016 Open-RnD Sp. z o.o.
# Copyright (c) 2016 BayLibre, SAS
# Copyright (c) 2019 Centaur Analytics, Inc
# Copyright (c) 2019 STMicroelectronics
#
# SPDX-License-Identifier: Apache-2.0
#
@ -32,6 +33,9 @@ config SOC_STM32L475XX
config SOC_STM32L4R5XX
bool "STM32L4R5XX"
config SOC_STM32L4R9XX
bool "STM32L4R9XX"
config SOC_STM32L471XX
bool "STM32L471XX"