soc: arm: st_stm32: add stm32g474 series

This patch introduces the support of the STM32G474
     device from STMicroelectronics.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2019-10-17 17:53:49 +02:00 committed by Kumar Gala
commit fafd20ca93
4 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,7 @@
/*
* Copyright (c) 2019 STMicroelectronics.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <st/g4/stm32g431.dtsi>

View file

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

View file

@ -0,0 +1,16 @@
# STMicroelectronics STM32G474RE MCU
# Copyright (c) 2019 STMicroelectronics.
# SPDX-License-Identifier: Apache-2.0
if SOC_STM32G474XX
config SOC
string
default "stm32g474xx"
config NUM_IRQS
int
default 102
endif # SOC_STM32G474XX

View file

@ -10,4 +10,7 @@ choice
config SOC_STM32G431XX
bool "STM32G431XX"
config SOC_STM32G474XX
bool "STM32G474XX"
endchoice