Same deal as in commit eddd98f
("kconfig: Replace some single-symbol
'if's with 'depends on'"), for all symbols defined within defconfig
files. See that commit for an explanation.
Maybe 'if's were used originally to mirror the 'if's in the main Kconfig
files, and then it got copied around by people assuming 'if' must work
differently from 'depends on'. It doesn't match in every spot at least.
Better to keep it simple and just consistently use 'depends on' when
it's a single symbol/choice I think. Helps reinforce that 'if' isn't
magic too.
Verified by printing all Kconfig menu nodes (symbols, choices, menus,
etc.) before and after the change and diffing (should show no
difference).
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
38 lines
633 B
Text
38 lines
633 B
Text
# ST Microelectronics STM32F4 MCU line
|
|
|
|
# Copyright (c) 2016 Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Kconfig symbols common to STM32F4 series
|
|
|
|
if SOC_SERIES_STM32F4X
|
|
|
|
source "soc/arm/st_stm32/stm32f4/Kconfig.defconfig.stm32f4*"
|
|
|
|
config SOC_SERIES
|
|
default "stm32f4"
|
|
|
|
if GPIO_STM32
|
|
|
|
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
|
|
|
|
config GPIO_STM32_PORTD
|
|
default y
|
|
|
|
config GPIO_STM32_PORTE
|
|
default y
|
|
|
|
config GPIO_STM32_PORTH
|
|
default y
|
|
|
|
endif # GPIO_STM32
|
|
|
|
config I2C_STM32_V1
|
|
default y
|
|
depends on I2C_STM32
|
|
|
|
config DMA_STM32_V1
|
|
default y
|
|
depends on DMA_STM32
|
|
|
|
endif # SOC_SERIES_STM32F4X
|