soc: nrf: Use data from DTS to populate HAS_HW_NRF_* Kconfig options
Instead of selecting appropriate HAS_HW_NRF_* options for particular nRF SoCs (and simulated nRF52 target), set their values basing on information from devicetree. Correct also semantics of those options so that they are set only when a corresponding DT node is enabled. This allows using them directly in Kconfig dependencies of Zephyr drivers for nRF peripherals. Update appropriately these dependencies. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
f80e572750
commit
586e26e8fc
18 changed files with 178 additions and 837 deletions
|
@ -5,9 +5,6 @@
|
|||
|
||||
if BT_LL_SW_SPLIT
|
||||
|
||||
DT_PATH_NORDIC_RADIO := $(dt_nodelabel_path,radio)
|
||||
DT_NORDIC_RADIO_DFE_SUPPORTED := $(dt_node_bool_prop,$(DT_PATH_NORDIC_RADIO),dfe-supported)
|
||||
|
||||
config BT_LLL_VENDOR_NORDIC
|
||||
bool "Use Nordic LLL"
|
||||
depends on SOC_COMPATIBLE_NRF
|
||||
|
@ -34,8 +31,8 @@ config BT_LLL_VENDOR_NORDIC
|
|||
select BT_CTLR_SYNC_PERIODIC_SUPPORT
|
||||
select BT_CTLR_ADV_ISO_SUPPORT
|
||||
select BT_CTLR_SYNC_ISO_SUPPORT
|
||||
select BT_CTLR_DF_SUPPORT if $(DT_NORDIC_RADIO_DFE_SUPPORTED)
|
||||
select BT_CTLR_CTEINLINE_SUPPORT if $(DT_NORDIC_RADIO_DFE_SUPPORTED)
|
||||
select BT_CTLR_DF_SUPPORT if HAS_HW_NRF_RADIO_DFE
|
||||
select BT_CTLR_CTEINLINE_SUPPORT if HAS_HW_NRF_RADIO_DFE
|
||||
select BT_CTLR_CHAN_SEL_2_SUPPORT
|
||||
select BT_CTLR_MIN_USED_CHAN_SUPPORT
|
||||
select BT_CTLR_DTM_HCI_SUPPORT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue