kconfig: Replace non-defconfig single-symbol 'if's with 'depends on'

Same deal as in commit eddd98f811 ("kconfig: Replace some single-symbol
'if's with 'depends on'"), for the remaining cases outside defconfig
files. See that commit for an explanation.

Will do the defconfigs separately in case there are any complaints
there.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2020-02-09 22:26:07 +01:00 committed by Kumar Gala
commit 378d6b137a
74 changed files with 123 additions and 388 deletions

View file

@ -274,18 +274,15 @@ config DYNAMIC_OBJECTS
API call, or when the number of references to that object drops to API call, or when the number of references to that object drops to
zero. zero.
if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
config NOCACHE_MEMORY config NOCACHE_MEMORY
bool "Support for uncached memory" bool "Support for uncached memory"
depends on ARCH_HAS_NOCACHE_MEMORY_SUPPORT
help help
Add a "nocache" read-write memory section that is configured to Add a "nocache" read-write memory section that is configured to
not be cached. This memory section can be used to perform DMA not be cached. This memory section can be used to perform DMA
transfers when cache coherence issues are not optimal or can not transfers when cache coherence issues are not optimal or can not
be solved using cache maintenance operations. be solved using cache maintenance operations.
endif # ARCH_HAS_NOCACHE_MEMORY_SUPPORT
menu "Interrupt Configuration" menu "Interrupt Configuration"
config DYNAMIC_INTERRUPTS config DYNAMIC_INTERRUPTS
@ -520,16 +517,13 @@ menuconfig FLOAT
Disabling this option means that any thread that uses a Disabling this option means that any thread that uses a
floating point register will get a fatal exception. floating point register will get a fatal exception.
if FLOAT
config FP_SHARING config FP_SHARING
bool "Floating point register sharing" bool "Floating point register sharing"
depends on FLOAT
help help
This option allows multiple threads to use the floating point This option allows multiple threads to use the floating point
registers. registers.
endif # FLOAT
config ARCH config ARCH
string string
help help

View file

@ -60,10 +60,9 @@ config MPU_STACK_GUARD
help help
Enable Thread Stack Guards via MPU Enable Thread Stack Guards via MPU
if MPU_STACK_GUARD
config MPU_STACK_GUARD_MIN_SIZE_FLOAT config MPU_STACK_GUARD_MIN_SIZE_FLOAT
int int
depends on MPU_STACK_GUARD
depends on FP_SHARING depends on FP_SHARING
default 128 default 128
help help
@ -75,8 +74,6 @@ config MPU_STACK_GUARD_MIN_SIZE_FLOAT
is only stacked in sharing FP registers mode, therefore, the is only stacked in sharing FP registers mode, therefore, the
option is applicable only when FP_SHARING is selected. option is applicable only when FP_SHARING is selected.
endif # MPU_STACK_GUARD
config MPU_ALLOW_FLASH_WRITE config MPU_ALLOW_FLASH_WRITE
bool "Add MPU access to write to flash" bool "Add MPU access to write to flash"
help help

View file

@ -3,11 +3,10 @@
# Copyright (c) 2017 Synopsys, Inc. All rights reserved. # Copyright (c) 2017 Synopsys, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_EM_STARTERKIT
choice choice
prompt "Board Firmware Version" prompt "Board Firmware Version"
default BOARD_EM_STARTERKIT_R23 default BOARD_EM_STARTERKIT_R23
depends on BOARD_EM_STARTERKIT
config BOARD_EM_STARTERKIT_R22 config BOARD_EM_STARTERKIT_R22
bool "2.2" bool "2.2"
@ -16,5 +15,3 @@ choice
bool "2.3" bool "2.3"
endchoice endchoice
endif

View file

@ -3,11 +3,8 @@
# Copyright (c) 2019 Laird Connectivity # Copyright (c) 2019 Laird Connectivity
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_BL652_DVK
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_BL652_DVK
endif # BOARD_BL652_DVK

View file

@ -3,11 +3,8 @@
# Copyright (c) 2019 Laird Connectivity # Copyright (c) 2019 Laird Connectivity
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_BL654_DVK
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_BL654_DVK
endif # BOARD_BL654_DVK

View file

@ -3,11 +3,8 @@
# Copyright (c) 2019 Stéphane D'Alu # Copyright (c) 2019 Stéphane D'Alu
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_DECAWAVE_DWM1001_DEV
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_DECAWAVE_DWM1001_DEV
endif # BOARD_DECAWAVE_DWM1001_DEV

View file

@ -3,11 +3,8 @@
# Copyright (c) 2019 Atmark Techno, Inc. # Copyright (c) 2019 Atmark Techno, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_DEGU_EVK
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_DEGU_EVK
endif # BOARD_DEGU_EVK

View file

@ -3,14 +3,11 @@
# Copyright (c) 2019 Oane Kingma # Copyright (c) 2019 Oane Kingma
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_EFM32GG_STK3701A
config BOARD_INIT_PRIORITY config BOARD_INIT_PRIORITY
int int
default KERNEL_INIT_PRIORITY_DEFAULT default KERNEL_INIT_PRIORITY_DEFAULT
depends on BOARD_EFM32GG_STK3701A
depends on GPIO depends on GPIO
help help
Board initialization priority. This must be bigger than Board initialization priority. This must be bigger than
GPIO_GECKO_COMMON_INIT_PRIORITY. GPIO_GECKO_COMMON_INIT_PRIORITY.
endif # BOARD_EFM32GG_STK3701A

View file

@ -4,14 +4,11 @@
# Copyright (c) 2018 Marcio Montenegro # Copyright (c) 2018 Marcio Montenegro
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_EFM32HG_SLSTK3400A
config BOARD_INIT_PRIORITY config BOARD_INIT_PRIORITY
int int
default KERNEL_INIT_PRIORITY_DEFAULT default KERNEL_INIT_PRIORITY_DEFAULT
depends on BOARD_EFM32HG_SLSTK3400A
depends on GPIO depends on GPIO
help help
Board initialization priority. This must be bigger than Board initialization priority. This must be bigger than
GPIO_GECKO_COMMON_INIT_PRIORITY. GPIO_GECKO_COMMON_INIT_PRIORITY.
endif # BOARD_EFM32HG_SLSTK3400A

View file

@ -3,14 +3,11 @@
# Copyright (c) 2018 Christian Taedcke # Copyright (c) 2018 Christian Taedcke
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_EFM32PG_STK3402A || BOARD_EFM32PG_STK3402A_JG
config BOARD_INIT_PRIORITY config BOARD_INIT_PRIORITY
int int
default KERNEL_INIT_PRIORITY_DEFAULT default KERNEL_INIT_PRIORITY_DEFAULT
depends on BOARD_EFM32PG_STK3402A || BOARD_EFM32PG_STK3402A_JG
depends on GPIO depends on GPIO
help help
Board initialization priority. This must be bigger than Board initialization priority. This must be bigger than
GPIO_GECKO_COMMON_INIT_PRIORITY. GPIO_GECKO_COMMON_INIT_PRIORITY.
endif # BOARD_EFM32PG_STK3402A || BOARD_EFM32PG_STK3402A_JG

View file

@ -3,14 +3,11 @@
# Copyright (c) 2017 Christian Taedcke # Copyright (c) 2017 Christian Taedcke
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_EFM32WG_STK3800
config BOARD_INIT_PRIORITY config BOARD_INIT_PRIORITY
int int
default KERNEL_INIT_PRIORITY_DEFAULT default KERNEL_INIT_PRIORITY_DEFAULT
depends on BOARD_EFM32WG_STK3800
depends on GPIO depends on GPIO
help help
Board initialization priority. This must be bigger than Board initialization priority. This must be bigger than
GPIO_GECKO_COMMON_INIT_PRIORITY. GPIO_GECKO_COMMON_INIT_PRIORITY.
endif # BOARD_EFM32WG_STK3800

View file

@ -3,14 +3,11 @@
# Copyright (c) 2018 Christian Taedcke # Copyright (c) 2018 Christian Taedcke
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_EFR32_SLWSTK6061A
config BOARD_INIT_PRIORITY config BOARD_INIT_PRIORITY
int int
default KERNEL_INIT_PRIORITY_DEFAULT default KERNEL_INIT_PRIORITY_DEFAULT
depends on BOARD_EFR32_SLWSTK6061A
depends on GPIO depends on GPIO
help help
Board initialization priority. This must be bigger than Board initialization priority. This must be bigger than
GPIO_GECKO_COMMON_INIT_PRIORITY. GPIO_GECKO_COMMON_INIT_PRIORITY.
endif # BOARD_EFR32_SLWSTK6061A

View file

@ -3,13 +3,10 @@
# Copyright (c) 2018 Christian Taedcke, Diego Sueiro # Copyright (c) 2018 Christian Taedcke, Diego Sueiro
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_EFR32MG_SLTB004A
config BOARD_INIT_PRIORITY config BOARD_INIT_PRIORITY
int int
default KERNEL_INIT_PRIORITY_DEFAULT default KERNEL_INIT_PRIORITY_DEFAULT
depends on BOARD_EFR32MG_SLTB004A
help help
Board initialization priority. This must be bigger than Board initialization priority. This must be bigger than
GPIO_GECKO_COMMON_INIT_PRIORITY. GPIO_GECKO_COMMON_INIT_PRIORITY.
endif # BOARD_EFR32MG_SLTB004A

View file

@ -3,9 +3,6 @@
# Copyright (c) 2017, NXP # Copyright (c) 2017, NXP
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_HEXIWEAR_K64
config BATTERY_SENSE config BATTERY_SENSE
bool "Enable the battery sense circuit" bool "Enable the battery sense circuit"
depends on BOARD_HEXIWEAR_K64
endif # BOARD_HEXIWEAR_K64

View file

@ -3,11 +3,8 @@
# Copyright (c) 2019 Nordic Semiconductor ASA # Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52811_PCA10056
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52811_PCA10056
endif # BOARD_NRF52811_PCA10056

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018 makerdiary.com. # Copyright (c) 2018 makerdiary.com.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52832_MDK
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52832_MDK
endif # BOARD_NRF52832_MDK

View file

@ -3,11 +3,8 @@
# Copyright (c) 2019 Nordic Semiconductor ASA # Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52833_PCA10100
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52833_PCA10100
endif # BOARD_NRF52833_PCA10100

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018 Electronut Labs # Copyright (c) 2018 Electronut Labs
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840_BLIP
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52840_BLIP
endif # BOARD_NRF52840_BLIP

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018 makerdiary.com # Copyright (c) 2018 makerdiary.com
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840_MDK
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52840_MDK
endif # BOARD_NRF52840_MDK

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018 Electronut Labs # Copyright (c) 2018 Electronut Labs
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840_PAPYR
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52840_PAPYR
endif # BOARD_NRF52840_PAPYR

View file

@ -3,11 +3,8 @@
# Copyright (c) 2016 Nordic Semiconductor ASA # Copyright (c) 2016 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52840_PCA10056
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52840_PCA10056
endif # BOARD_NRF52840_PCA10056

View file

@ -198,10 +198,9 @@ config BOARD_PCA10090_NRF52840_RESET
The GPIO line may only be one of the first 6 MCU interface pins. The GPIO line may only be one of the first 6 MCU interface pins.
The line is active high. The line is active high.
if BOARD_PCA10090_NRF52840_RESET
choice choice
prompt "Pin used for reset" prompt "Pin used for reset"
depends on BOARD_PCA10090_NRF52840_RESET
comment "nRF52840 pins" comment "nRF52840 pins"
@ -249,8 +248,6 @@ config BOARD_PCA10090_NRF52840_RESET_P1_02
endchoice endchoice
endif # BOARD_PCA10090_NRF52840_RESET
module = BOARD_PCA10090 module = BOARD_PCA10090
module-str = Board Control module-str = Board Control
source "subsys/logging/Kconfig.template.log_config" source "subsys/logging/Kconfig.template.log_config"

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018 LEDCity AG # Copyright (c) 2018 LEDCity AG
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52_ADAFRUIT_FEATHER
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52_ADAFRUIT_FEATHER
endif # BOARD_NRF52_ADAFRUIT_FEATHER

View file

@ -3,11 +3,8 @@
# Copyright (c) 2016 Nordic Semiconductor ASA # Copyright (c) 2016 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF52_PCA10040
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_NRF52_PCA10040
endif # BOARD_NRF52_PCA10040

View file

@ -13,10 +13,6 @@ config BOARD_NRF5340_DK_NRF5340_CPUAPPNS
endif # SOC_NRF5340_CPUAPP_QKAA endif # SOC_NRF5340_CPUAPP_QKAA
if SOC_NRF5340_CPUNET_QKAA
config BOARD_NRF5340_DK_NRF5340_CPUNET config BOARD_NRF5340_DK_NRF5340_CPUNET
bool "nRF5340 DK NRF5340 Network MCU" bool "nRF5340 DK NRF5340 Network MCU"
depends on SOC_NRF5340_CPUNET_QKAA
endif # SOC_NRF5340_CPUNET_QKAA

View file

@ -3,25 +3,19 @@
# Copyright (c) 2018 Nordic Semiconductor ASA # Copyright (c) 2018 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_NRF9160_PCA10090 || BOARD_NRF9160_PCA10090NS
config BOARD_NRF52840_GPIO_RESET config BOARD_NRF52840_GPIO_RESET
bool "Use nRF52840 PCA10090 GPIO reset pin" bool "Use nRF52840 PCA10090 GPIO reset pin"
default y if BT_H4 default y if BT_H4
depends on BOARD_NRF9160_PCA10090 || BOARD_NRF9160_PCA10090NS
help help
Use a GPIO pin to reset the nRF52840 controller and let it wait until all Use a GPIO pin to reset the nRF52840 controller and let it wait until all
bytes traveling to the H4 device have been received and drained, thus bytes traveling to the H4 device have been received and drained, thus
ensuring communication can begin correctly. ensuring communication can begin correctly.
if BOARD_NRF52840_GPIO_RESET
config BOARD_NRF52840_GPIO_RESET_PIN config BOARD_NRF52840_GPIO_RESET_PIN
int "Reset pin" int "Reset pin"
range 17 23 range 17 23
default 23 default 23
depends on BOARD_NRF52840_GPIO_RESET
help help
GPIO pin on the nRF9160 used to reset the nRF52840. GPIO pin on the nRF9160 used to reset the nRF52840.
endif
endif # BOARD_NRF9160_PCA10090 || BOARD_NRF9160_PCA10090NS

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018 Matthias Boesl # Copyright (c) 2018 Matthias Boesl
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_PARTICLE_ARGON
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_PARTICLE_ARGON
endif # BOARD_PARTICLE_ARGON

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018 Peter Bigot Consulting, LLC # Copyright (c) 2018 Peter Bigot Consulting, LLC
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_PARTICLE_BORON
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_PARTICLE_BORON
endif # BOARD_PARTICLE_BORON

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018 Endre Karlson # Copyright (c) 2018 Endre Karlson
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_PARTICLE_XENON
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_PARTICLE_XENON
endif # BOARD_PARTICLE_XENON

View file

@ -3,11 +3,8 @@
# Copyright (c) 2018-2019 PHYTEC Messtechnik GmbH # Copyright (c) 2018-2019 PHYTEC Messtechnik GmbH
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if BOARD_REEL_BOARD || BOARD_REEL_BOARD_V2
config BOARD_ENABLE_DCDC config BOARD_ENABLE_DCDC
bool "Enable DCDC mode" bool "Enable DCDC mode"
select SOC_DCDC_NRF52X select SOC_DCDC_NRF52X
default y default y
depends on BOARD_REEL_BOARD || BOARD_REEL_BOARD_V2
endif # BOARD_REEL_BOARD || BOARD_REEL_BOARD_V2

View file

@ -99,11 +99,10 @@ config BT_SPI_BLUENRG
endif # BT_SPI endif # BT_SPI
if BT_RPMSG
config BT_RPMSG_NRF53 config BT_RPMSG_NRF53
bool "nRF53 configuration of RPMsg" bool "nRF53 configuration of RPMsg"
default y if (BOARD_NRF5340_DK_NRF5340_CPUAPP || BOARD_NRF5340_DK_NRF5340_CPUAPPNS) default y if (BOARD_NRF5340_DK_NRF5340_CPUAPP || BOARD_NRF5340_DK_NRF5340_CPUAPPNS)
depends on BT_RPMSG
select IPM select IPM
select IPM_NRFX select IPM_NRFX
select IPM_MSG_CH_1_ENABLE select IPM_MSG_CH_1_ENABLE
@ -126,5 +125,3 @@ config BT_RPMSG_NRF53_RX_PRIO
default 8 default 8
endif # BT_RPMSG_NRF53 endif # BT_RPMSG_NRF53
endif # BT_RPMSG

View file

@ -26,13 +26,11 @@ config ENTROPY_HAS_DRIVER
This is an option to be enabled by individual entropy driver This is an option to be enabled by individual entropy driver
to signal that there is a true entropy driver. to signal that there is a true entropy driver.
if !HAS_DTS_ENTROPY
config ENTROPY_NAME config ENTROPY_NAME
string "Entropy Device Name" string "Entropy Device Name"
default "ENTROPY_0" default "ENTROPY_0"
depends on !HAS_DTS_ENTROPY
help help
Specify the device name to be used for the ENTROPY driver. Specify the device name to be used for the ENTROPY driver.
endif
endif endif

View file

@ -11,10 +11,9 @@ config ENTROPY_NRF_FORCE_ALT
This option can be enabled to force an alternative implementation This option can be enabled to force an alternative implementation
of the entropy driver. of the entropy driver.
if !ENTROPY_NRF_FORCE_ALT
menuconfig ENTROPY_NRF5_RNG menuconfig ENTROPY_NRF5_RNG
bool "nRF5 RNG driver" bool "nRF5 RNG driver"
depends on !ENTROPY_NRF_FORCE_ALT
depends on HAS_HW_NRF_RNG depends on HAS_HW_NRF_RNG
select ENTROPY_HAS_DRIVER select ENTROPY_HAS_DRIVER
default y default y
@ -78,5 +77,3 @@ config ENTROPY_NRF5_PRI
nRF5X RNG IRQ priority. nRF5X RNG IRQ priority.
endif # ENTROPY_NRF5_RNG endif # ENTROPY_NRF5_RNG
endif # !ENTROPY_NRF_FORCE_ALT

View file

@ -4,10 +4,9 @@
menuconfig ETH_LITEETH menuconfig ETH_LITEETH
bool "LiteEth Ethernet core driver" bool "LiteEth Ethernet core driver"
if ETH_LITEETH
config ETH_LITEETH_0 config ETH_LITEETH_0
bool "LiteEth Ethernet port 0" bool "LiteEth Ethernet port 0"
depends on ETH_LITEETH
if ETH_LITEETH_0 if ETH_LITEETH_0
@ -15,7 +14,7 @@ config ETH_LITEETH_0_IRQ_PRI
int "LiteEth interrupt priority" int "LiteEth interrupt priority"
default 0 default 0
help help
IRQ priority IRQ priority
config ETH_LITEETH_0_RANDOM_MAC config ETH_LITEETH_0_RANDOM_MAC
bool "Random MAC address" bool "Random MAC address"
@ -24,5 +23,3 @@ config ETH_LITEETH_0_RANDOM_MAC
Generate a random MAC address dynamically. Generate a random MAC address dynamically.
endif # ETH_LITEETH_0 endif # ETH_LITEETH_0
endif # ETH_LITEETH

View file

@ -101,11 +101,10 @@ config ETH_NATIVE_POSIX_VLAN_TAG_STRIP
Rx Ethernet frames and sets tag information in net packet Rx Ethernet frames and sets tag information in net packet
metadata. metadata.
if ! ETH_NATIVE_POSIX_RANDOM_MAC
config ETH_NATIVE_POSIX_MAC_ADDR config ETH_NATIVE_POSIX_MAC_ADDR
string "MAC address for the interface" string "MAC address for the interface"
default "" default ""
depends on !ETH_NATIVE_POSIX_RANDOM_MAC
help help
Specify a MAC address for the ethernet interface in the form of Specify a MAC address for the ethernet interface in the form of
six hex 8-bit chars separated by colons (e.g.: six hex 8-bit chars separated by colons (e.g.:
@ -113,6 +112,4 @@ config ETH_NATIVE_POSIX_MAC_ADDR
means the code will make 00:00:5E:00:53:XX, where XX will be means the code will make 00:00:5E:00:53:XX, where XX will be
random. random.
endif
endif # ETH_NATIVE_POSIX endif # ETH_NATIVE_POSIX

View file

@ -34,12 +34,11 @@ config GPIO_DW_0
help help
Include Designware GPIO driver Include Designware GPIO driver
if !HAS_DTS
config GPIO_DW_0_NAME config GPIO_DW_0_NAME
string "Driver name" string "Driver name"
depends on GPIO_DW_0 depends on GPIO_DW_0
depends on !HAS_DTS
default "GPIO_0" default "GPIO_0"
endif
config GPIO_DW_0_CLOCK_GATE_SUBSYS config GPIO_DW_0_CLOCK_GATE_SUBSYS
int "Clock controller's subsystem" int "Clock controller's subsystem"
@ -65,25 +64,23 @@ config GPIO_DW_0_IRQ_SHARED
endchoice endchoice
if !HAS_DTS
config GPIO_DW_0_IRQ_PRI config GPIO_DW_0_IRQ_PRI
int "Controller interrupt priority" int "Controller interrupt priority"
depends on GPIO_DW_0 && GPIO_DW_0_IRQ_DIRECT depends on GPIO_DW_0 && GPIO_DW_0_IRQ_DIRECT
depends on !HAS_DTS
help help
IRQ priority IRQ priority
endif
config GPIO_DW_1 config GPIO_DW_1
bool "Designware GPIO block 1" bool "Designware GPIO block 1"
help help
Include Designware GPIO driver Include Designware GPIO driver
if !HAS_DTS
config GPIO_DW_1_NAME config GPIO_DW_1_NAME
string "Driver name" string "Driver name"
depends on GPIO_DW_1 depends on GPIO_DW_1
depends on !HAS_DTS
default "GPIO_1" default "GPIO_1"
endif
config GPIO_DW_1_CLOCK_GATE_SUBSYS config GPIO_DW_1_CLOCK_GATE_SUBSYS
int "Clock controller's subsystem" int "Clock controller's subsystem"
@ -109,25 +106,23 @@ config GPIO_DW_1_IRQ_SHARED
endchoice endchoice
if !HAS_DTS
config GPIO_DW_1_IRQ_PRI config GPIO_DW_1_IRQ_PRI
int "Controller interrupt priority" int "Controller interrupt priority"
depends on GPIO_DW_1 && GPIO_DW_1_IRQ_DIRECT depends on GPIO_DW_1 && GPIO_DW_1_IRQ_DIRECT
depends on !HAS_DTS
help help
IRQ priority IRQ priority
endif
config GPIO_DW_2 config GPIO_DW_2
bool "Designware GPIO block 1" bool "Designware GPIO block 1"
help help
Include Designware GPIO driver Include Designware GPIO driver
if !HAS_DTS
config GPIO_DW_2_NAME config GPIO_DW_2_NAME
string "Driver name" string "Driver name"
depends on GPIO_DW_2 depends on GPIO_DW_2
depends on !HAS_DTS
default "GPIO_2" default "GPIO_2"
endif
config GPIO_DW_2_CLOCK_GATE_SUBSYS config GPIO_DW_2_CLOCK_GATE_SUBSYS
int "Clock controller's subsystem" int "Clock controller's subsystem"
@ -153,25 +148,23 @@ config GPIO_DW_2_IRQ_SHARED
endchoice endchoice
if !HAS_DTS
config GPIO_DW_2_IRQ_PRI config GPIO_DW_2_IRQ_PRI
int "Controller interrupt priority" int "Controller interrupt priority"
depends on GPIO_DW_2 && GPIO_DW_2_IRQ_DIRECT depends on GPIO_DW_2 && GPIO_DW_2_IRQ_DIRECT
depends on !HAS_DTS
help help
IRQ priority IRQ priority
endif
config GPIO_DW_3 config GPIO_DW_3
bool "Designware GPIO block 1" bool "Designware GPIO block 1"
help help
Include Designware GPIO driver Include Designware GPIO driver
if !HAS_DTS
config GPIO_DW_3_NAME config GPIO_DW_3_NAME
string "Driver name" string "Driver name"
depends on GPIO_DW_3 depends on GPIO_DW_3
depends on !HAS_DTS
default "GPIO_3" default "GPIO_3"
endif
config GPIO_DW_3_CLOCK_GATE_SUBSYS config GPIO_DW_3_CLOCK_GATE_SUBSYS
int "Clock controller's subsystem" int "Clock controller's subsystem"
@ -197,12 +190,11 @@ config GPIO_DW_3_IRQ_SHARED
endchoice endchoice
if !HAS_DTS
config GPIO_DW_3_IRQ_PRI config GPIO_DW_3_IRQ_PRI
int "Controller interrupt priority" int "Controller interrupt priority"
depends on GPIO_DW_3 && GPIO_DW_3_IRQ_DIRECT depends on GPIO_DW_3 && GPIO_DW_3_IRQ_DIRECT
depends on !HAS_DTS
help help
IRQ priority IRQ priority
endif
endif # GPIO_DW endif # GPIO_DW

View file

@ -15,13 +15,10 @@ menuconfig GPIO_HT16K33
controller drivers, each supporting GPIO callbacks for controller drivers, each supporting GPIO callbacks for
keyscan event notifications. keyscan event notifications.
if GPIO_HT16K33
config GPIO_HT16K33_INIT_PRIORITY config GPIO_HT16K33_INIT_PRIORITY
int "Driver init priority" int "Driver init priority"
default 99 default 99
depends on GPIO_HT16K33
help help
Device driver initialization priority. This driver must be Device driver initialization priority. This driver must be
initialized after the HT16K33 LED driver. initialized after the HT16K33 LED driver.
endif # GPIO_HT16K33

View file

@ -9,11 +9,10 @@ menuconfig GPIO_INTEL_APL
help help
Enable driver for Intel Apollo Lake SoC GPIO Enable driver for Intel Apollo Lake SoC GPIO
if GPIO_INTEL_APL
config GPIO_INTEL_APL_CHECK_PERMS config GPIO_INTEL_APL_CHECK_PERMS
bool "Check permissions before manipulating GPIO" bool "Check permissions before manipulating GPIO"
default y default y
depends on GPIO_INTEL_APL
help help
This option enables the checks to make sure the GPIO This option enables the checks to make sure the GPIO
pin can be manipulated. Only if the pin is owned by pin can be manipulated. Only if the pin is owned by
@ -21,5 +20,3 @@ config GPIO_INTEL_APL_CHECK_PERMS
the driver allows manipulating the pin. the driver allows manipulating the pin.
Say y if unsure. Say y if unsure.
endif # GPIO_INTEL_APL

View file

@ -15,13 +15,10 @@ menuconfig GPIO_LMP90XXX
The GPIO port of the LMP90xxx (D6 to D0) is exposed as a The GPIO port of the LMP90xxx (D6 to D0) is exposed as a
GPIO controller driver with read/write support. GPIO controller driver with read/write support.
if GPIO_LMP90XXX
config GPIO_LMP90XXX_INIT_PRIORITY config GPIO_LMP90XXX_INIT_PRIORITY
int "Driver init priority" int "Driver init priority"
default 99 default 99
depends on GPIO_LMP90XXX
help help
Device driver initialization priority. This driver must be Device driver initialization priority. This driver must be
initialized after the LMP90xxx ADC driver. initialized after the LMP90xxx ADC driver.
endif # GPIO_LMP90XXX

View file

@ -9,12 +9,9 @@ menuconfig GPIO_PCA95XX
help help
Enable driver for PCA95XX I2C-based GPIO chip. Enable driver for PCA95XX I2C-based GPIO chip.
if GPIO_PCA95XX
config GPIO_PCA95XX_INIT_PRIORITY config GPIO_PCA95XX_INIT_PRIORITY
int "Init priority" int "Init priority"
default 70 default 70
depends on GPIO_PCA95XX
help help
Device driver initialization priority. Device driver initialization priority.
endif # GPIO_PCA95XX

View file

@ -45,10 +45,9 @@ config GPIO_STM32_PORTJ
config GPIO_STM32_PORTK config GPIO_STM32_PORTK
bool "Enable GPIO port K support" bool "Enable GPIO port K support"
if SOC_SERIES_STM32F1X
choice GPIO_STM32_SWJ choice GPIO_STM32_SWJ
prompt "Serial wire JTAG configuration" prompt "Serial wire JTAG configuration"
depends on SOC_SERIES_STM32F1X
config GPIO_STM32_SWJ_ENABLE config GPIO_STM32_SWJ_ENABLE
depends on !(SOC_STM32F103XE && SPI_3) depends on !(SOC_STM32F103XE && SPI_3)
@ -66,6 +65,4 @@ config GPIO_STM32_SWJ_DISABLE
endchoice endchoice
endif # SOC_SERIES_STM32F1X
endif # GPIO_STM32 endif # GPIO_STM32

View file

@ -12,10 +12,7 @@ menuconfig I2C_DW
help help
Enable the Design Ware I2C driver Enable the Design Ware I2C driver
if I2C_DW
config I2C_DW_CLOCK_SPEED config I2C_DW_CLOCK_SPEED
int "Set the clock speed for I2C" int "Set the clock speed for I2C"
default 32 default 32
depends on I2C_DW
endif # I2C_DW

View file

@ -14,17 +14,17 @@ menuconfig I2C_NRFX
if I2C_NRFX if I2C_NRFX
# In most Nordic SoCs, SPI and TWI peripherals with the same instance number
# share certain resources and therefore cannot be used at the same time
# (in nRF91 and nRF53 Series this limitation concerns UART peripherals as well).
# In nRF52810 though, there are only single instances of these peripherals
# and they are arranged in a different way, so this limitation does not apply.
if I2C_0 && (SOC_NRF52810 || \
(!SPI_0 && !(SOC_SERIES_NRF91X && UART_0_NRF_UARTE)) || \
(!SPI_0 && !(SOC_SERIES_NRF53X && UART_0_NRF_UARTE)))
choice I2C_0_NRF_TYPE choice I2C_0_NRF_TYPE
prompt "I2C Port 0 Driver type" prompt "I2C Port 0 Driver type"
# In most Nordic SoCs, SPI and TWI peripherals with the same instance
# number share certain resources and therefore cannot be used at the
# same time (in nRF91 and nRF53 Series this limitation concerns UART
# peripherals as well). In nRF52810 though, there are only single
# instances of these peripherals and they are arranged in a different
# way, so this limitation does not apply.
depends on I2C_0 && (SOC_NRF52810 || \
(!SPI_0 && !(SOC_SERIES_NRF91X && UART_0_NRF_UARTE)) || \
(!SPI_0 && !(SOC_SERIES_NRF53X && UART_0_NRF_UARTE)))
config I2C_0_NRF_TWI config I2C_0_NRF_TWI
bool "nRF TWI 0" bool "nRF TWI 0"
@ -44,17 +44,15 @@ config I2C_0_NRF_TWIM
endchoice endchoice
endif # I2C_0 && (SOC_NRF52810 || ...
# In Nordic SoCs, SPI and TWI peripherals with the same instance number
# share certain resources and therefore cannot be used at the same time
# (in nRF91 and nRF53 Series this limitation concerns UART peripherals as well).
if I2C_1 && !SPI_1 && \
!(SOC_SERIES_NRF91X && UART_1_NRF_UARTE) && \
!(SOC_SERIES_NRF53X && UART_1_NRF_UARTE)
choice I2C_1_NRF_TYPE choice I2C_1_NRF_TYPE
prompt "I2C Port 1 Driver type" prompt "I2C Port 1 Driver type"
# In Nordic SoCs, SPI and TWI peripherals with the same instance number
# share certain resources and therefore cannot be used at the same time
# (in nRF91 and nRF53 Series this limitation concerns UART peripherals
# as well).
depends on I2C_1 && !SPI_1 && \
!(SOC_SERIES_NRF91X && UART_1_NRF_UARTE) && \
!(SOC_SERIES_NRF53X && UART_1_NRF_UARTE)
config I2C_1_NRF_TWI config I2C_1_NRF_TWI
bool "nRF TWI 1" bool "nRF TWI 1"
@ -74,17 +72,15 @@ config I2C_1_NRF_TWIM
endchoice endchoice
endif # I2C_1 && !SPI_1 && !(SOC_SERIES_NRF91X && UART_1_NRF_UARTE) && ...
# In Nordic SoCs, SPI and TWI peripherals with the same instance number
# share certain resources and therefore cannot be used at the same time
# (in nRF91 and nRF53 Series this limitation concerns UART peripherals as well).
if I2C_2 && !SPI_2 && \
!(SOC_SERIES_NRF91X && UART_2_NRF_UARTE) && \
!(SOC_SERIES_NRF53X && UART_2_NRF_UARTE)
choice I2C_2_NRF_TYPE choice I2C_2_NRF_TYPE
prompt "I2C Port 2 Driver type" prompt "I2C Port 2 Driver type"
# In Nordic SoCs, SPI and TWI peripherals with the same instance number
# share certain resources and therefore cannot be used at the same time
# (in nRF91 and nRF53 Series this limitation concerns UART peripherals
# as well).
depends on I2C_2 && !SPI_2 && \
!(SOC_SERIES_NRF91X && UART_2_NRF_UARTE) && \
!(SOC_SERIES_NRF53X && UART_2_NRF_UARTE)
config I2C_2_NRF_TWIM config I2C_2_NRF_TWIM
bool "nRF TWIM 2" bool "nRF TWIM 2"
@ -97,17 +93,15 @@ config I2C_2_NRF_TWIM
endchoice endchoice
endif # I2C_2 && !SPI_2 && !(SOC_SERIES_NRF91X && UART_2_NRF_UARTE) && ...
# In Nordic SoCs, SPI and TWI peripherals with the same instance number
# share certain resources and therefore cannot be used at the same time
# (in nRF91 and nRF53 Series this limitation concerns UART peripherals as well).
if I2C_3 && !SPI_3 && \
!(SOC_SERIES_NRF91X && UART_3_NRF_UARTE) && \
!(SOC_SERIES_NRF53X && UART_3_NRF_UARTE)
choice I2C_3_NRF_TYPE choice I2C_3_NRF_TYPE
prompt "I2C Port 3 Driver type" prompt "I2C Port 3 Driver type"
# In Nordic SoCs, SPI and TWI peripherals with the same instance number
# share certain resources and therefore cannot be used at the same time
# (in nRF91 and nRF53 Series this limitation concerns UART peripherals
# as well).
depends on I2C_3 && !SPI_3 && \
!(SOC_SERIES_NRF91X && UART_3_NRF_UARTE) && \
!(SOC_SERIES_NRF53X && UART_3_NRF_UARTE)
config I2C_3_NRF_TWIM config I2C_3_NRF_TWIM
bool "nRF TWIM 3" bool "nRF TWIM 3"
@ -120,6 +114,4 @@ config I2C_3_NRF_TWIM
endchoice endchoice
endif # I2C_3 && !SPI_3 && !(SOC_SERIES_NRF91X && UART_3_NRF_UARTE) && ...
endif # I2C_NRFX endif # I2C_NRFX

View file

@ -1,11 +1,10 @@
# Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud> # Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud>
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_FAMILY_SAM0
menuconfig I2C_SAM0 menuconfig I2C_SAM0
bool "SAM0 series I2C SERCOM driver" bool "SAM0 series I2C SERCOM driver"
default y default y
depends on SOC_FAMILY_SAM0
help help
Enable the SAM0 series SERCOM I2C driver. Enable the SAM0 series SERCOM I2C driver.
@ -18,5 +17,3 @@ config I2C_SAM0_DMA_DRIVEN
DMA driven mode requires fewer interrupts to handle the DMA driven mode requires fewer interrupts to handle the
transaction and ensures that high speed modes are not delayed transaction and ensures that high speed modes are not delayed
by data reloading. by data reloading.
endif # SOC_FAMILY_SAM0

View file

@ -3,13 +3,10 @@
# Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud> # Copyright (c) 2019 Derek Hageman <hageman@inthat.cloud>
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_FAMILY_SAM0
config SAM0_EIC config SAM0_EIC
bool "External Interrupt Controller (EIC) Driver for SAM0 series devices" bool "External Interrupt Controller (EIC) Driver for SAM0 series devices"
default y default y
depends on SOC_FAMILY_SAM0
help help
Enable EIC driver for SAM0 series of devices. This is required for Enable EIC driver for SAM0 series of devices. This is required for
GPIO interrupt support. GPIO interrupt support.
endif # SOC_FAMILY_SAM0

View file

@ -14,11 +14,10 @@ menuconfig LORA_SX1276
help help
Enable LoRa driver for Semtech SX1276. Enable LoRa driver for Semtech SX1276.
if LORA_SX1276
choice choice
prompt "SX1276 PA Output pin" prompt "SX1276 PA Output pin"
default PA_BOOST_PIN default PA_BOOST_PIN
depends on LORA_SX1276
help help
Antenna connection type. Antenna connection type.
@ -33,5 +32,3 @@ config PA_BOOST_PIN
Antenna connected to PA_BOOST pin. Antenna connected to PA_BOOST pin.
endchoice endchoice
endif # LORA_SX1276

View file

@ -10,12 +10,9 @@ menuconfig PWM_DW
Care must be taken if one is also to use the timer feature, as Care must be taken if one is also to use the timer feature, as
they both use the same set of registers. they both use the same set of registers.
if PWM_DW
config PWM_DW_0_DRV_NAME config PWM_DW_0_DRV_NAME
string "DesignWare PWM Device Name" string "DesignWare PWM Device Name"
default "PWM_0" default "PWM_0"
depends on PWM_DW
help help
Specify the device name for the DesignWare PWM driver. Specify the device name for the DesignWare PWM driver.
endif # PWM_DW

View file

@ -11,12 +11,9 @@ menuconfig PWM_LITEX
help help
Enable support for LiteX PWM driver Enable support for LiteX PWM driver
if PWM_LITEX
config PWM_LITEX_INIT_PRIORITY config PWM_LITEX_INIT_PRIORITY
int "Init priority" int "Init priority"
default 70 default 70
depends on PWM_LITEX
help help
PWM device driver initialization priority. PWM device driver initialization priority.
endif # PWM_LITEX

View file

@ -10,12 +10,9 @@ menuconfig PWM_SIFIVE
help help
Enable the PWM driver for the SiFive Freedom platform Enable the PWM driver for the SiFive Freedom platform
if PWM_SIFIVE
config PWM_SIFIVE_INIT_PRIORITY config PWM_SIFIVE_INIT_PRIORITY
int "Init Priority" int "Init Priority"
default KERNEL_INIT_PRIORITY_DEVICE default KERNEL_INIT_PRIORITY_DEVICE
depends on PWM_SIFIVE
help help
SiFive PWM Driver Initialization Priority SiFive PWM Driver Initialization Priority
endif # PWM_SIFIVE

View file

@ -11,11 +11,8 @@ menuconfig UART_MCUX_FLEXCOMM
help help
Enable the MCUX USART driver. Enable the MCUX USART driver.
if UART_MCUX_FLEXCOMM
config UART_MCUX_FLEXCOMM_0 config UART_MCUX_FLEXCOMM_0
bool "USART 0" bool "USART 0"
depends on UART_MCUX_FLEXCOMM
help help
Enable USART 0. Enable USART 0.
endif # UART_MCUX_FLEXCOMM

View file

@ -95,16 +95,13 @@ config UART_10
Enable support for UART10 port in the driver. Enable support for UART10 port in the driver.
Say y here if you want to use UART10 device. Say y here if you want to use UART10 device.
if SOC_SERIES_STM32L0X || SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX || SOC_SERIES_STM32H7X || SOC_SERIES_STM32G4X
# --- low power port 1 --- # --- low power port 1 ---
config LPUART_1 config LPUART_1
bool "Enable STM32 LPUART1 Port" bool "Enable STM32 LPUART1 Port"
depends on SOC_SERIES_STM32L0X || SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX || SOC_SERIES_STM32H7X || SOC_SERIES_STM32G4X
help help
Enable support for LPUART1 port in the driver. Enable support for LPUART1 port in the driver.
Say y here if you want to use LPUART1 device. Say y here if you want to use LPUART1 device.
endif # SOC_SERIES_STM32L0X || SOC_SERIES_STM32L4X || SOC_SERIES_STM32WBX || SOC_SERIES_STM32G4X
endif # UART_STM32 endif # UART_STM32

View file

@ -28,11 +28,10 @@ config UART_SAM_PORT_1
help help
Enable UART1 at boot. Enable UART1 at boot.
if UART_SAM_PORT_1
choice UART_SAME70_PORT_1_PIN_TX choice UART_SAME70_PORT_1_PIN_TX
prompt "TX pin" prompt "TX pin"
depends on SOC_SERIES_SAME70 depends on SOC_SERIES_SAME70
depends on UART_SAM_PORT_1
config UART_SAM_PORT_1_PIN_TX_PA4 config UART_SAM_PORT_1_PIN_TX_PA4
bool "PA4" bool "PA4"
@ -44,8 +43,6 @@ choice UART_SAME70_PORT_1_PIN_TX
bool "PD26" bool "PD26"
endchoice endchoice
endif # UART_SAM_PORT_1
# ---------- Port 2 ---------- # ---------- Port 2 ----------
config UART_SAM_PORT_2 config UART_SAM_PORT_2
@ -62,11 +59,10 @@ config UART_SAM_PORT_3
help help
Enable UART3 at boot Enable UART3 at boot
if UART_SAM_PORT_3
choice UART_SAME70_PORT_3_PIN_TX choice UART_SAME70_PORT_3_PIN_TX
prompt "TX pin" prompt "TX pin"
depends on SOC_SERIES_SAME70 depends on SOC_SERIES_SAME70
depends on UART_SAM_PORT_3
config UART_SAM_PORT_3_PIN_TX_PD30 config UART_SAM_PORT_3_PIN_TX_PD30
bool "PD30" bool "PD30"
@ -75,8 +71,6 @@ choice UART_SAME70_PORT_3_PIN_TX
bool "PD31" bool "PD31"
endchoice endchoice
endif # UART_SAM_PORT_3
# ---------- Port 4 ---------- # ---------- Port 4 ----------
config UART_SAM_PORT_4 config UART_SAM_PORT_4
@ -85,11 +79,10 @@ config UART_SAM_PORT_4
help help
Enable UART4 at boot Enable UART4 at boot
if UART_SAM_PORT_4
choice UART_SAME70_PORT_4_PIN_TX choice UART_SAME70_PORT_4_PIN_TX
prompt "TX pin" prompt "TX pin"
depends on SOC_SERIES_SAME70 depends on SOC_SERIES_SAME70
depends on UART_SAM_PORT_4
config UART_SAM_PORT_4_PIN_TX_PD3 config UART_SAM_PORT_4_PIN_TX_PD3
bool "PD3" bool "PD3"
@ -97,5 +90,3 @@ choice UART_SAME70_PORT_4_PIN_TX
config UART_SAM_PORT_4_PIN_TX_PD19 config UART_SAM_PORT_4_PIN_TX_PD19
bool "PD19" bool "PD19"
endchoice endchoice
endif # UART_SAM_PORT_4

View file

@ -41,12 +41,11 @@ config SPI_0
help help
Enable SPI controller port 0. Enable SPI controller port 0.
if SPI_0
config SPI_0_OP_MODES config SPI_0_OP_MODES
int "Port 0 supported operation modes (master/slave/both)" int "Port 0 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_0
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 0, where: port 0, where:
@ -54,19 +53,16 @@ config SPI_0_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_0
config SPI_1 config SPI_1
bool "SPI port 1" bool "SPI port 1"
help help
Enable SPI controller port 1. Enable SPI controller port 1.
if SPI_1
config SPI_1_OP_MODES config SPI_1_OP_MODES
int "Port 1 supported operation modes (master/slave/both)" int "Port 1 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_1
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 1, where: port 1, where:
@ -74,19 +70,16 @@ config SPI_1_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_1
config SPI_2 config SPI_2
bool "SPI port 2" bool "SPI port 2"
help help
Enable SPI controller port 2. Enable SPI controller port 2.
if SPI_2
config SPI_2_OP_MODES config SPI_2_OP_MODES
int "Port 2 supported operation modes (master/slave/both)" int "Port 2 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_2
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 2, where: port 2, where:
@ -94,19 +87,16 @@ config SPI_2_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_2
config SPI_3 config SPI_3
bool "SPI port 3" bool "SPI port 3"
help help
Enable SPI controller port 3. Enable SPI controller port 3.
if SPI_3
config SPI_3_OP_MODES config SPI_3_OP_MODES
int "Port 3 supported operation modes (master/slave/both)" int "Port 3 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_3
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 3, where: port 3, where:
@ -114,19 +104,16 @@ config SPI_3_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_3
config SPI_4 config SPI_4
bool "SPI port 4" bool "SPI port 4"
help help
Enable SPI controller port 4. Enable SPI controller port 4.
if SPI_4
config SPI_4_OP_MODES config SPI_4_OP_MODES
int "Port 4 supported operation modes (master/slave/both)" int "Port 4 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_4
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 4, where: port 4, where:
@ -134,19 +121,16 @@ config SPI_4_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_4
config SPI_5 config SPI_5
bool "SPI port 5" bool "SPI port 5"
help help
Enable SPI controller port 5. Enable SPI controller port 5.
if SPI_5
config SPI_5_OP_MODES config SPI_5_OP_MODES
int "Port 5 supported operation modes (master/slave/both)" int "Port 5 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_5
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 5, where: port 5, where:
@ -154,19 +138,16 @@ config SPI_5_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_5
config SPI_6 config SPI_6
bool "SPI port 6" bool "SPI port 6"
help help
Enable SPI controller port 6. Enable SPI controller port 6.
if SPI_6
config SPI_6_OP_MODES config SPI_6_OP_MODES
int "Port 6 supported operation modes (master/slave/both)" int "Port 6 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_6
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 6, where: port 6, where:
@ -174,19 +155,16 @@ config SPI_6_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_6
config SPI_7 config SPI_7
bool "SPI port 7" bool "SPI port 7"
help help
Enable SPI controller port 7. Enable SPI controller port 7.
if SPI_7
config SPI_7_OP_MODES config SPI_7_OP_MODES
int "Port 7 supported operation modes (master/slave/both)" int "Port 7 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_7
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 7, where: port 7, where:
@ -194,19 +172,16 @@ config SPI_7_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_7
config SPI_8 config SPI_8
bool "SPI port 8" bool "SPI port 8"
help help
Enable SPI controller port 8. Enable SPI controller port 8.
if SPI_8
config SPI_8_OP_MODES config SPI_8_OP_MODES
int "Port 8 supported operation modes (master/slave/both)" int "Port 8 supported operation modes (master/slave/both)"
default 1 default 1
range 1 3 range 1 3
depends on SPI_8
help help
This sets the supported operation modes at runtime, by the SPI This sets the supported operation modes at runtime, by the SPI
port 8, where: port 8, where:
@ -214,8 +189,6 @@ config SPI_8_OP_MODES
2 is SLAVE mode only 2 is SLAVE mode only
3 is both modes are available. 3 is both modes are available.
endif # SPI_8
source "drivers/spi/Kconfig.stm32" source "drivers/spi/Kconfig.stm32"
source "drivers/spi/Kconfig.dw" source "drivers/spi/Kconfig.dw"

View file

@ -260,11 +260,10 @@ config SPI_4_NRF_RX_DELAY
endif # SPI_4 endif # SPI_4
if NRFX_SPIM
config SPI_NRFX_RAM_BUFFER_SIZE config SPI_NRFX_RAM_BUFFER_SIZE
int "Size of RAM buffers for SPIM peripherals" int "Size of RAM buffers for SPIM peripherals"
default 0 default 0
depends on NRFX_SPIM
help help
SPIM peripherals cannot transmit data directly from flash. Therefore, SPIM peripherals cannot transmit data directly from flash. Therefore,
a buffer in RAM needs to be provided for each instance of SPI driver a buffer in RAM needs to be provided for each instance of SPI driver
@ -275,6 +274,4 @@ config SPI_NRFX_RAM_BUFFER_SIZE
supplying buffers located in flash to the driver, otherwise such supplying buffers located in flash to the driver, otherwise such
transfers will fail. transfers will fail.
endif # NRFX_SPIM
endif # SPI_NRFX endif # SPI_NRFX

View file

@ -8,9 +8,6 @@ menuconfig SPI_OC_SIMPLE
help help
Enable the Simple SPI controller Enable the Simple SPI controller
if SPI_OC_SIMPLE
config SPI_OC_SIMPLE_BUS_WIDTH config SPI_OC_SIMPLE_BUS_WIDTH
def_int 8 def_int 8
depends on SPI_OC_SIMPLE
endif # SPI_OC_SIMPLE

View file

@ -9,11 +9,10 @@ menuconfig SPI_SIFIVE
help help
Enable the SPI peripherals on SiFive Freedom processors Enable the SPI peripherals on SiFive Freedom processors
if SPI_SIFIVE
config SIFIVE_SPI_0_ROM config SIFIVE_SPI_0_ROM
bool "SPI 0 is used to access SPI Flash ROM" bool "SPI 0 is used to access SPI Flash ROM"
default y default y
depends on SPI_SIFIVE
help help
If enabled, SPI 0 is reserved for accessing the SPI flash ROM and a If enabled, SPI 0 is reserved for accessing the SPI flash ROM and a
driver interface won't be instantiated for SPI 0. driver interface won't be instantiated for SPI 0.
@ -21,5 +20,3 @@ config SIFIVE_SPI_0_ROM
Beware disabling this option on HiFive 1! The SPI flash ROM is where the Beware disabling this option on HiFive 1! The SPI flash ROM is where the
program is stored, and if this driver initializes the interface for program is stored, and if this driver initializes the interface for
peripheral control the FE310 will crash on boot. peripheral control the FE310 will crash on boot.
endif # SPI_SIFIVE

View file

@ -6,12 +6,9 @@ menuconfig LIBMETAL
help help
This option enables the libmetal HAL abstraction layer This option enables the libmetal HAL abstraction layer
if LIBMETAL
config LIBMETAL_SRC_PATH config LIBMETAL_SRC_PATH
string "libmetal library source path" string "libmetal library source path"
default "libmetal" default "libmetal"
depends on LIBMETAL
help help
This option specifies the path to the source for the libmetal library This option specifies the path to the source for the libmetal library
endif # LIBMETAL

View file

@ -14,8 +14,6 @@ config HAS_SEMTECH_RADIO_DRIVERS
help help
This option enables the use of Semtech's Radio drivers This option enables the use of Semtech's Radio drivers
if HAS_SEMTECH_RADIO_DRIVERS
config HAS_SEMTECH_SX1276 config HAS_SEMTECH_SX1276
bool bool
endif depends on HAS_SEMTECH_RADIO_DRIVERS

View file

@ -38,9 +38,7 @@ config MBEDTLS_CFG_FILE
special TLS usage, use available Kconfig options, or select an special TLS usage, use available Kconfig options, or select an
alternative config. alternative config.
if MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-generic.h"
rsource "Kconfig.tls-generic" rsource "Kconfig.tls-generic"
endif
config MBEDTLS_SSL_MAX_CONTENT_LEN config MBEDTLS_SSL_MAX_CONTENT_LEN
int "Max payload size for TLS protocol message" int "Max payload size for TLS protocol message"

View file

@ -5,6 +5,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
menu "TLS configuration" menu "TLS configuration"
depends on MBEDTLS_BUILTIN && MBEDTLS_CFG_FILE = "config-tls-generic.h"
menu "Supported TLS version" menu "Supported TLS version"

View file

@ -1,11 +1,10 @@
# Copyright (c) 2019 Synopsys, Inc. All rights reserved. # Copyright (c) 2019 Synopsys, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_ARC_EMSDP
choice choice
prompt "ARC EM Software Development Platform Core Selection" prompt "ARC EM Software Development Platform Core Selection"
default SOC_EMSDP_EM11D default SOC_EMSDP_EM11D
depends on SOC_ARC_EMSDP
config SOC_EMSDP_EM4 config SOC_EMSDP_EM4
bool "Synopsys ARC EM4 of EMSDP" bool "Synopsys ARC EM4 of EMSDP"
@ -42,5 +41,3 @@ config SOC_EMSDP_EM11D
select CPU_HAS_FPU select CPU_HAS_FPU
endchoice endchoice
endif # SOC_ARC_EMSDP

View file

@ -2,11 +2,10 @@
# Copyright (c) 2018 Synopsys, Inc. All rights reserved. # Copyright (c) 2018 Synopsys, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_EMSK
choice choice
prompt "ARC EM Starter Kit Core Selection" prompt "ARC EM Starter Kit Core Selection"
default SOC_EMSK_EM7D default SOC_EMSK_EM7D
depends on SOC_EMSK
config SOC_EMSK_EM7D config SOC_EMSK_EM7D
bool "Synopsys ARC EM7D of EMSK" bool "Synopsys ARC EM7D of EMSK"
@ -21,5 +20,3 @@ config SOC_EMSK_EM9D
select CPU_HAS_FPU select CPU_HAS_FPU
endchoice endchoice
endif # SOC_EMSK

View file

@ -1,11 +1,10 @@
# Copyright (c) 2018 Synopsys, Inc. All rights reserved. # Copyright (c) 2018 Synopsys, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_NSIM
choice choice
prompt "ARC nSIM SoC Selection" prompt "ARC nSIM SoC Selection"
default SOC_NSIM_EM default SOC_NSIM_EM
depends on SOC_NSIM
config SOC_NSIM_EM config SOC_NSIM_EM
bool "Synopsys ARC EM in nSIM" bool "Synopsys ARC EM in nSIM"
@ -27,5 +26,3 @@ config SOC_NSIM_HS_SMP
select CPU_HAS_FPU select CPU_HAS_FPU
endchoice endchoice
endif # SOC_NSIM

View file

@ -3,9 +3,6 @@
# Copyright (c) 2019 Oane Kingma # Copyright (c) 2019 Oane Kingma
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_EFM32GG11B
config SOC_PART_NUMBER_EFM32GG11B820F2048GL192 config SOC_PART_NUMBER_EFM32GG11B820F2048GL192
bool bool
depends on SOC_SERIES_EFM32GG11B
endif # SOC_SERIES_EFM32GG11B

View file

@ -3,9 +3,6 @@
# Copyright (c) 2018 Marcio Montenegro # Copyright (c) 2018 Marcio Montenegro
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_EFM32HG
config SOC_PART_NUMBER_EFM32HG322F64 config SOC_PART_NUMBER_EFM32HG322F64
bool bool
depends on SOC_SERIES_EFM32HG
endif # SOC_SERIES_EFM32HG

View file

@ -3,9 +3,6 @@
# Copyright (c) 2019 Lemonbeat GmbH # Copyright (c) 2019 Lemonbeat GmbH
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_EFM32JG12B
config SOC_PART_NUMBER_EFM32JG12B500F1024GL125 config SOC_PART_NUMBER_EFM32JG12B500F1024GL125
bool bool
depends on SOC_SERIES_EFM32JG12B
endif # SOC_SERIES_EFM32JG12B

View file

@ -3,9 +3,6 @@
# Copyright (c) 2018 Christian Taedcke # Copyright (c) 2018 Christian Taedcke
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_EFM32PG12B
config SOC_PART_NUMBER_EFM32PG12B500F1024GL125 config SOC_PART_NUMBER_EFM32PG12B500F1024GL125
bool bool
depends on SOC_SERIES_EFM32PG12B
endif # SOC_SERIES_EFM32PG12B

View file

@ -3,9 +3,6 @@
# Copyright (c) 2017 Christian Taedcke # Copyright (c) 2017 Christian Taedcke
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_EFM32WG
config SOC_PART_NUMBER_EFM32WG990F256 config SOC_PART_NUMBER_EFM32WG990F256
bool bool
depends on SOC_SERIES_EFM32WG
endif # SOC_SERIES_EFM32WG

View file

@ -3,9 +3,6 @@
# Copyright (c) 2018 Christian Taedcke # Copyright (c) 2018 Christian Taedcke
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_EFR32FG1P
config SOC_PART_NUMBER_EFR32FG1P133F256GM48 config SOC_PART_NUMBER_EFR32FG1P133F256GM48
bool bool
depends on SOC_SERIES_EFR32FG1P
endif # SOC_SERIES_EFR32FG1P

View file

@ -3,9 +3,6 @@
# Copyright (c) 2018 Diego Sueiro # Copyright (c) 2018 Diego Sueiro
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_EFR32MG12P
config SOC_PART_NUMBER_EFR32MG12P332F1024GL125 config SOC_PART_NUMBER_EFR32MG12P332F1024GL125
bool bool
depends on SOC_SERIES_EFR32MG12P
endif # SOC_SERIES_EFR32MG12P

View file

@ -3,11 +3,8 @@
# Copyright (c) 2014-2015 Wind River Systems, Inc. # Copyright (c) 2014-2015 Wind River Systems, Inc.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if SOC_TI_LM3S6965
config SOC_TI_LM3S6965_QEMU config SOC_TI_LM3S6965_QEMU
def_bool y def_bool y
depends on SOC_TI_LM3S6965
# Platform has only been tested on QEMU, not on real hardware, so always # Platform has only been tested on QEMU, not on real hardware, so always
# assume it is used for a QEMU target. # assume it is used for a QEMU target.
endif # SOC_TI_LM3S6965

View file

@ -16,19 +16,12 @@ config SOC_CC3235SF
endchoice endchoice
if SOC_CC3220SF
config CC3220SF_DEBUG config CC3220SF_DEBUG
bool "Prepend debug header, disabling flash verification" if XIP bool "Prepend debug header, disabling flash verification" if XIP
default XIP default XIP
depends on SOC_CC3220SF
endif # SOC_CC3220SF
if SOC_CC3235SF
config CC3235SF_DEBUG config CC3235SF_DEBUG
bool "Prepend debug header, disabling flash verification" if XIP bool "Prepend debug header, disabling flash verification" if XIP
default XIP default XIP
depends on SOC_CC3235SF
endif # SOC_CC3235SF

View file

@ -12,10 +12,9 @@
# conventions, those "other" cores would need to be supported under a # conventions, those "other" cores would need to be supported under a
# different soc subdirectory, e.g. soc/arm instead of soc/riscv. # different soc subdirectory, e.g. soc/arm instead of soc/riscv.
if SOC_OPENISA_RV32M1_RISCV32
choice choice
prompt "OpenISA RV32M1 RISC-V Core Selection" prompt "OpenISA RV32M1 RISC-V Core Selection"
depends on SOC_OPENISA_RV32M1_RISCV32
config SOC_OPENISA_RV32M1_RI5CY config SOC_OPENISA_RV32M1_RI5CY
bool "OpenISA RV32M1 RI5CY core" bool "OpenISA RV32M1 RI5CY core"
@ -24,5 +23,3 @@ config SOC_OPENISA_RV32M1_ZERO_RISCY
bool "OpenISA RV32M1 ZERO-RISCY core" bool "OpenISA RV32M1 ZERO-RISCY core"
endchoice endchoice
endif # SOC_OPENISA_RV32M1_RISCV32

View file

@ -8,10 +8,9 @@ menuconfig NET_MGMT
of the network stack as well as receiving notification on network of the network stack as well as receiving notification on network
events (ip address change, iface up and running ...). events (ip address change, iface up and running ...).
if NET_MGMT
config NET_MGMT_EVENT config NET_MGMT_EVENT
bool "Add support for runtime network event notifications" bool "Add support for runtime network event notifications"
depends on NET_MGMT
help help
This adds support for the stack to notify events towards any This adds support for the stack to notify events towards any
relevant listener. This can be necessary when application relevant listener. This can be necessary when application
@ -65,4 +64,3 @@ config NET_DEBUG_MGMT_EVENT_STACK
Add debug messages output on how much Net MGMT event stack is used. Add debug messages output on how much Net MGMT event stack is used.
endif # NET_MGMT_EVENT endif # NET_MGMT_EVENT
endif # NET_MGMT