zephyr/soc/arm/nxp_kinetis/k8x/Kconfig.defconfig.series
Ulf Magnusson a42a42cd5a kconfig: Replace defconfig singe-symbol 'if's with 'depends on'
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>
2020-02-12 10:32:13 -06:00

82 lines
1.2 KiB
Plaintext

# Kinetis K8x series configuration options
# Copyright (c) 2019 SEAL AG
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_KINETIS_K8X
config SOC_SERIES
default "k8x"
config NUM_IRQS
# must be >= the highest interrupt number used
default 106
config CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS
default y
config KINETIS_FLASH_CONFIG_FOPT
default 0x3f
depends on KINETIS_FLASH_CONFIG
config ADC_MCUX_ADC16
default y
depends on ADC
if CLOCK_CONTROL
config CLOCK_CONTROL_MCUX_MCG
default y
config CLOCK_CONTROL_MCUX_SIM
default y
endif # CLOCK_CONTROL
config ENTROPY_MCUX_TRNG
default y
depends on ENTROPY_GENERATOR
config SOC_FLASH_MCUX
default y
depends on FLASH
config GPIO
default y
config GPIO_MCUX
default y
depends on GPIO
config I2C_MCUX
default y
depends on I2C
config PINMUX_MCUX
default y
depends on PINMUX
config PWM_MCUX_FTM
default y
depends on PWM
config UART_MCUX_LPUART
default y
depends on SERIAL
config SPI_MCUX_DSPI
default y
depends on SPI
config USB_KINETIS
default y
depends on USB
config WDT_MCUX_WDOG
default y
depends on WATCHDOG
source "soc/arm/nxp_kinetis/k8x/Kconfig.defconfig.mk*"
endif # SOC_SERIES_KINETIS_K8X