mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-06 12:55:45 +00:00
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>
77 lines
1023 B
Plaintext
77 lines
1023 B
Plaintext
# Kinetis KW2xD SoC configuration options
|
|
|
|
# Copyright (c) 2017, Phytec Messtechnik GmbH
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if SOC_MKW22D5 || SOC_MKW24D5
|
|
|
|
config SOC
|
|
default "mkw22d5"
|
|
depends on SOC_MKW22D5
|
|
|
|
config SOC
|
|
default "mkw24d5"
|
|
depends on SOC_MKW24D5
|
|
|
|
config NUM_IRQS
|
|
default 65
|
|
|
|
config ADC_MCUX_ADC16
|
|
default y
|
|
depends on ADC
|
|
|
|
if CLOCK_CONTROL
|
|
|
|
config CLOCK_CONTROL_MCUX_SIM
|
|
default y
|
|
|
|
config CLOCK_CONTROL_MCUX_MCG
|
|
default y
|
|
|
|
endif # CLOCK_CONTROL
|
|
|
|
config PINMUX_MCUX
|
|
default y
|
|
depends on PINMUX
|
|
|
|
config GPIO_MCUX
|
|
default y
|
|
depends on GPIO
|
|
|
|
config I2C_MCUX
|
|
default y
|
|
depends on I2C
|
|
|
|
config SPI
|
|
default y
|
|
|
|
config PWM_MCUX_FTM
|
|
default y
|
|
depends on PWM
|
|
|
|
config SPI_MCUX_DSPI
|
|
default y
|
|
depends on SPI
|
|
|
|
config ENTROPY_MCUX_RNGA
|
|
default y
|
|
depends on ENTROPY_GENERATOR
|
|
|
|
config SOC_FLASH_MCUX
|
|
default y
|
|
depends on FLASH
|
|
|
|
config UART_MCUX
|
|
default y
|
|
depends on SERIAL
|
|
|
|
config USB_KINETIS
|
|
default y
|
|
depends on USB
|
|
|
|
config WDT_MCUX_WDOG
|
|
default y
|
|
depends on WATCHDOG
|
|
|
|
endif # SOC_MKW2xD512
|