Bluetooth: controller: remove hidden GPIOTE configs

The GPIOTE channels used to manage radio front end module GPIOs are
configured with invisible Kconfig symbols. They are therefore not user
visible. Remove them by redefining them in terms of equivalent macros
defined in radio_nrf5.h. This lets us get rid of a couple of ifdefs
that are no longer needed as well.

This is because these invisible symbols depend on the
CONFIG_BT_CTLR_GPIO_* pin configuration symbols. We would like to move
all of that pin configuration to devicetree, because it's hardware
description. It is therefore inconvenient to have the GPIOTE channel
configuration set via Kconfig in a way that depends on something we
would like to remove.

No functional changes or user impact expected: invisible symbols
cannot be set in .conf files.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-10-22 16:40:04 -07:00 committed by Carles Cufí
commit c8aee4d04f
5 changed files with 41 additions and 72 deletions

View file

@ -791,33 +791,6 @@ config BT_CTLR_GPIO_PDN_CSN_OFFSET
endif # BT_CTLR_FEM_NRF21540
config BT_CTLR_PA_LNA_GPIOTE_CHAN
# Hidden "nRF5 GPIO PA/LNA GPIOTE Channel"
int
depends on SOC_FAMILY_NRF && (BT_CTLR_GPIO_PA || BT_CTLR_GPIO_LNA)
default 3 if PWM_NRF5_SW
default 0
help
Select the nRF5 GPIOTE channel to use for PA/LNA GPIO feature.
config BT_CTLR_PDN_GPIOTE_CHAN
# Hidden "nRF5 GPIO FEM PDN GPIOTE Channel"
int
depends on SOC_FAMILY_NRF && BT_CTLR_FEM_NRF21540
default 4 if PWM_NRF5_SW
default 1
help
Select the nRF5 GPIOTE channel to use for FEM PDN GPIO pin toggle.
config BT_CTLR_CSN_GPIOTE_CHAN
# Hidden "nRF5 GPIO FEM CSN GPIOTE Channel"
int
depends on SOC_FAMILY_NRF && BT_CTLR_FEM_NRF21540
default 5 if PWM_NRF5_SW
default 2
help
Select the nRF5 GPIOTE channel to use for FEM CSN GPIO pin toggle.
comment "BLE Controller debug configuration"
config BT_CTLR_PROFILE_ISR