soc: stm32l476rg: rename SOC config flag
Rename SOC_STM32L476XX to SOC_STM32L476XG to keep flash size information. Aim is to be able to distinguish flash size variants of the SoC when needed (for instance in dts/arm/st/mem.h file) Change-Id: I834bb5b83c24c39e90c0492a2b22a7c7802de361 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
558d50242d
commit
19a91c0272
|
@ -6,7 +6,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if SOC_STM32L476XX
|
||||
if SOC_STM32L476XG
|
||||
|
||||
config SOC
|
||||
string
|
||||
|
@ -16,5 +16,4 @@ config NUM_IRQS
|
|||
int
|
||||
default 82
|
||||
|
||||
endif # SOC_STM32L476XX
|
||||
|
||||
endif # SOC_STM32L476XG
|
||||
|
|
|
@ -10,8 +10,8 @@ choice
|
|||
prompt "STM32L4x MCU Selection"
|
||||
depends on SOC_SERIES_STM32L4X
|
||||
|
||||
config SOC_STM32L476XX
|
||||
bool "STM32L476XX"
|
||||
config SOC_STM32L476XG
|
||||
bool "STM32L476XG"
|
||||
select HAS_STM32CUBE
|
||||
|
||||
config SOC_STM32L432XC
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
config BOARD_NUCLEO_L476RG
|
||||
bool "Nucleo L476RG Development Board"
|
||||
depends on SOC_STM32L476XX
|
||||
depends on SOC_STM32L476XG
|
||||
|
|
|
@ -2,7 +2,7 @@ CONFIG_ARM=y
|
|||
CONFIG_BOARD_STM32_NUCLEO_L476RG=y
|
||||
CONFIG_SOC_FAMILY_STM32=y
|
||||
CONFIG_SOC_SERIES_STM32L4X=y
|
||||
CONFIG_SOC_STM32L476XX=y
|
||||
CONFIG_SOC_STM32L476XG=y
|
||||
CONFIG_CORTEX_M_SYSTICK=y
|
||||
# 80MHz system clock
|
||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=80000000
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#elif defined(CONFIG_SOC_STM32L475XG)
|
||||
#define DT_FLASH_SIZE __SIZE_K(1024)
|
||||
#define DT_SRAM_SIZE __SIZE_K(96)
|
||||
#elif defined(CONFIG_SOC_STM32L476XX)
|
||||
#elif defined(CONFIG_SOC_STM32L476XG)
|
||||
#define DT_FLASH_SIZE __SIZE_K(1024)
|
||||
#define DT_SRAM_SIZE __SIZE_K(96)
|
||||
#elif defined(CONFIG_SOC_STM32L432XC)
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <device.h>
|
||||
#include <pwm.h>
|
||||
|
||||
#if defined(CONFIG_SOC_STM32F401XE) || defined(CONFIG_SOC_STM32L476XX)
|
||||
#if defined(CONFIG_SOC_STM32F401XE) || defined(CONFIG_SOC_STM32L476XG)
|
||||
#define PWM_DRIVER CONFIG_PWM_STM32_2_DEV_NAME
|
||||
#define PWM_CHANNEL 1
|
||||
#elif CONFIG_SOC_STM32F103XB
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include <device.h>
|
||||
#include <pwm.h>
|
||||
|
||||
#if defined(CONFIG_SOC_STM32F401XE) || defined(CONFIG_SOC_STM32L476XX)
|
||||
#if defined(CONFIG_SOC_STM32F401XE) || defined(CONFIG_SOC_STM32L476XG)
|
||||
#define PWM_DRIVER CONFIG_PWM_STM32_2_DEV_NAME
|
||||
#define PWM_CHANNEL 1
|
||||
#elif CONFIG_SOC_STM32F103XB
|
||||
|
|
Loading…
Reference in a new issue