Skip to content

Commit

Permalink
[nrf fromtree] drivers: nrfwifi: Add provision to handle FW blobs ext…
Browse files Browse the repository at this point in the history
…ernally

The FW blobs are contentious topic in OSS, so, add a provision to use
external tooling (e.g., NCS) to handle FW blobs for advanced usecases
(e.g., storing in external flash).

This won't be used upstream, only built-in or build-only are supported.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit cb1ea80)
  • Loading branch information
krish2718 authored and carlescufi committed Oct 20, 2024
1 parent fe339b1 commit 8d6fc59
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion drivers/wifi/nrfwifi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ if (CONFIG_NRF_WIFI_BUILD_ONLY_MODE)
This is only for building (CI) purposes and will not work on a real device.
------------------------------------------------------------------------
")
else()
elseif(CONFIG_NRF_WIFI_PATCHES_BUILTIN)
# RPU FW patch binaries based on the selected configuration
if(CONFIG_NRF70_SYSTEM_MODE)
set(NRF70_PATCH ${FW_BINS_BASE}/default/nrf70.bin)
Expand Down
26 changes: 17 additions & 9 deletions drivers/wifi/nrfwifi/Kconfig.nrfwifi
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,29 @@ config NRF_WIFI_IF_AUTO_START
bool "Wi-Fi interface auto start on boot"
default y

choice NRF_WIFI_FW_BLOB_HANDLING
prompt "nRF70 Firmware blob handling"
default NRF_WIFI_PATCHES_BUILTIN

config NRF_WIFI_BUILD_ONLY_MODE
bool "Build only mode"
help
Enable this option to build the driver without firmware loading, removes
dependency on firmware binary and patches.
This is useful to check the build and link errors.

config NRF_WIFI_PATCHES_BUILTIN
bool "Store nRF70 FW patches as part of the driver"
default y
depends on !NRF_WIFI_BUILD_ONLY_MODE
help
Select this option to store nRF70 FW patches as part of the driver.
This option impacts the code memory footprint of the driver.

config NRF_WIFI_PATCHES_EXTERNAL
bool "Load nRF70 FW patches from external binary"
help
Select this option to load nRF70 FW patches from an external tooling.
endchoice

config NRF_WIFI_LOW_POWER
bool "low power mode in nRF Wi-Fi chipsets"
default y
Expand Down Expand Up @@ -690,11 +705,4 @@ config NRF_WIFI_QOS_NULL_BASED_RETRIEVAL

endchoice

config NRF_WIFI_BUILD_ONLY_MODE
bool "Build only mode"
help
Enable this option to build the driver without firmware loading, removes
dependency on firmware binary and patches.
This is useful to check the build and link errors.

endif # WIFI_NRF70

0 comments on commit 8d6fc59

Please sign in to comment.