Skip to content

Commit 63c239c

Browse files
krish2718carlescufi
authored andcommitted
[nrf fromlist] modules: nrf_wifi: Disable anomalies for both QSPIs
These are applicable for Wi-Fi over QSPI (nRF7002DK) or Flash over QSPI (nRF52/53 + nRF7002EK) and as most Wi-Fi samples run on 128MHz (for performance), disable the anomalies for both. Upstream PR #: 88897 Signed-off-by: Chaitanya Tata <[email protected]>
1 parent ad17ea8 commit 63c239c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

modules/nrf_wifi/bus/CMakeLists.txt

+12-10
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@ set(NRF_WIFI_DIR ${ZEPHYR_CURRENT_MODULE_DIR})
1313

1414
if (CONFIG_NRF70_BUSLIB)
1515

16-
zephyr_compile_definitions_ifdef(CONFIG_NRF70_ON_QSPI
17-
# These are XIP related anomalies and aren't applicable for nRF7002 and cause
18-
# throughput issues.
19-
-DNRF53_ERRATA_43_ENABLE_WORKAROUND=0
20-
-DNRF52_ERRATA_215_ENABLE_WORKAROUND=0
21-
# nRF70 QSPI doesn't use 192MHz clock and most samples use 128MHz, this can cause anomaly 159
22-
# but as its rare and not seen in most cases, we can disable it.
23-
# Alternative is 128MHz CPU should be disabled that impacts Wi-Fi performance.
24-
-DNRF53_ERRATA_159_ENABLE_WORKAROUND=0
25-
)
16+
if(CONFIG_NRF70_ON_QSPI OR CONFIG_NORDIC_QSPI_NOR)
17+
zephyr_compile_definitions(
18+
# These are XIP related anomalies and aren't applicable for nRF7002 and cause
19+
# throughput issues.
20+
-DNRF53_ERRATA_43_ENABLE_WORKAROUND=0
21+
-DNRF52_ERRATA_215_ENABLE_WORKAROUND=0
22+
# nRF70 QSPI doesn't use 192MHz clock and most samples use 128MHz, this can cause anomaly 159
23+
# but as its rare and not seen in most cases, we can disable it.
24+
# Alternative is 128MHz CPU should be disabled that impacts Wi-Fi performance.
25+
-DNRF53_ERRATA_159_ENABLE_WORKAROUND=0
26+
)
27+
endif()
2628

2729
zephyr_library_named(nrf70-buslib)
2830
zephyr_library_include_directories(

0 commit comments

Comments
 (0)