Skip to content

Commit 4660f4c

Browse files
krish2718kartben
authored andcommitted
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. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 49a8dd5 commit 4660f4c

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
@@ -8,16 +8,18 @@ set(NRF_WIFI_DIR ${ZEPHYR_CURRENT_MODULE_DIR})
88

99
if (CONFIG_NRF70_BUSLIB)
1010

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

2224
zephyr_library_named(nrf70-buslib)
2325
zephyr_library_include_directories(

0 commit comments

Comments
 (0)