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>
40 lines
669 B
Text
40 lines
669 B
Text
# Nordic Semiconductor nRFx MCU line
|
|
|
|
# Copyright (c) 2016-2018 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if SOC_FAMILY_NRF
|
|
|
|
source "soc/arm/nordic_nrf/*/Kconfig.defconfig.series"
|
|
|
|
# If the kernel has timer support, enable both clock control and timer
|
|
if SYS_CLOCK_EXISTS
|
|
|
|
config CLOCK_CONTROL
|
|
default y
|
|
|
|
config NRF_RTC_TIMER
|
|
default y
|
|
|
|
endif # SYS_CLOCK_EXISTS
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
default 32768
|
|
|
|
config SYS_CLOCK_TICKS_PER_SEC
|
|
default 32768
|
|
|
|
config ARCH_HAS_CUSTOM_BUSY_WAIT
|
|
default y
|
|
|
|
config SYS_POWER_MANAGEMENT
|
|
default y
|
|
|
|
config BUILD_OUTPUT_HEX
|
|
default y
|
|
|
|
config GPIO
|
|
default y
|
|
depends on SPI
|
|
|
|
endif # SOC_FAMILY_NRF
|