soc/arm/silabs: Kconfig: add SOC_GECKO_USE_RAIL kconfig option

Currently on zephyr, RAIL is used only for bluetooth. RAIL library is
needed to use efr32 radio regardless of the protocol used. We add
SOC_GECKO_USE_RAIL kconfig option to indicate if we use radio.
FPU is needed when using RAIL, we configure it if SOC_GECKO_USE_RAIL
is set.

Signed-off-by: Antoine Bout <antoine.bout@silabs.com>
This commit is contained in:
Antoine Bout 2023-06-23 11:52:40 +02:00 committed by Fabio Baltieri
commit dbea999347
5 changed files with 29 additions and 0 deletions

View file

@ -29,6 +29,13 @@ config LOG_BACKEND_SWO_FREQ_HZ
default 875000 default 875000
depends on LOG_BACKEND_SWO depends on LOG_BACKEND_SWO
if SOC_GECKO_USE_RAIL
config FPU
default y
endif # SOC_GECKO_USE_RAIL
if BT if BT
config FPU config FPU

View file

@ -23,6 +23,13 @@ config CMU_HFXO_FREQ
config CMU_LFXO_FREQ config CMU_LFXO_FREQ
default 32768 default 32768
if SOC_GECKO_USE_RAIL
config FPU
default y
endif # SOC_GECKO_USE_RAIL
if BT if BT
config FPU config FPU

View file

@ -18,6 +18,13 @@ config FLASH_BASE_ADDRESS
hex hex
default 0x08000000 default 0x08000000
if SOC_GECKO_USE_RAIL
config FPU
default y
endif # SOC_GECKO_USE_RAIL
if BT if BT
config FPU config FPU

View file

@ -60,6 +60,7 @@ config BT_SILABS_HCI
bool "Silicon Labs Bluetooth interface" bool "Silicon Labs Bluetooth interface"
depends on SOC_SERIES_EFR32BG22 || SOC_SERIES_EFR32MG24 || SOC_SERIES_EFR32BG27 depends on SOC_SERIES_EFR32BG22 || SOC_SERIES_EFR32MG24 || SOC_SERIES_EFR32BG27
depends on !PM || SOC_GECKO_PM_BACKEND_PMGR depends on !PM || SOC_GECKO_PM_BACKEND_PMGR
select SOC_GECKO_USE_RAIL
select ENTROPY_GENERATOR select ENTROPY_GENERATOR
select MBEDTLS select MBEDTLS
select MBEDTLS_PSA_CRYPTO_C select MBEDTLS_PSA_CRYPTO_C

View file

@ -319,4 +319,11 @@ config SOC_GECKO_HAS_HFRCO_FREQRANGE
If disabled, indicates that configuration of HFRCO frequency for corresponding SOC If disabled, indicates that configuration of HFRCO frequency for corresponding SOC
is not supported via this field. This is the case for e.g. efm32hg, efm32wg series. is not supported via this field. This is the case for e.g. efm32hg, efm32wg series.
config SOC_GECKO_USE_RAIL
bool "Use RAIL (Radio Abstraction Interface Layer)"
help
RAIL (Radio Abstraction Interface Layer) is a library needed to use the EFR radio
hardware. This option enable the proper set of features to allow to properly compile
with the RAIL blob.
endif # SOC_FAMILY_EXX32 endif # SOC_FAMILY_EXX32