Skip to content

Commit

Permalink
soc/arm/silabs: Kconfig: add SOC_GECKO_USE_RAIL kconfig option
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
antoinebout0 authored and fabiobaltieri committed Jul 31, 2023
1 parent 5555ac3 commit dbea999
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
7 changes: 7 additions & 0 deletions boards/arm/efr32_radio/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ config LOG_BACKEND_SWO_FREQ_HZ
default 875000
depends on LOG_BACKEND_SWO

if SOC_GECKO_USE_RAIL

config FPU
default y

endif # SOC_GECKO_USE_RAIL

if BT

config FPU
Expand Down
7 changes: 7 additions & 0 deletions boards/arm/efr32_thunderboard/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ config CMU_HFXO_FREQ
config CMU_LFXO_FREQ
default 32768

if SOC_GECKO_USE_RAIL

config FPU
default y

endif # SOC_GECKO_USE_RAIL

if BT

config FPU
Expand Down
7 changes: 7 additions & 0 deletions boards/arm/efr32xg24_dk2601b/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ config FLASH_BASE_ADDRESS
hex
default 0x08000000

if SOC_GECKO_USE_RAIL

config FPU
default y

endif # SOC_GECKO_USE_RAIL

if BT

config FPU
Expand Down
1 change: 1 addition & 0 deletions drivers/bluetooth/hci/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ config BT_SILABS_HCI
bool "Silicon Labs Bluetooth interface"
depends on SOC_SERIES_EFR32BG22 || SOC_SERIES_EFR32MG24 || SOC_SERIES_EFR32BG27
depends on !PM || SOC_GECKO_PM_BACKEND_PMGR
select SOC_GECKO_USE_RAIL
select ENTROPY_GENERATOR
select MBEDTLS
select MBEDTLS_PSA_CRYPTO_C
Expand Down
7 changes: 7 additions & 0 deletions soc/arm/silabs_exx32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -319,4 +319,11 @@ config SOC_GECKO_HAS_HFRCO_FREQRANGE
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.

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

0 comments on commit dbea999

Please sign in to comment.