From 4660f4c2445bb3e4f91d1edac51a772714f23b6d Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Fri, 18 Apr 2025 14:47:22 +0530 Subject: [PATCH] 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 --- modules/nrf_wifi/bus/CMakeLists.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/modules/nrf_wifi/bus/CMakeLists.txt b/modules/nrf_wifi/bus/CMakeLists.txt index 6a6c3b2526c..c36fec9d737 100644 --- a/modules/nrf_wifi/bus/CMakeLists.txt +++ b/modules/nrf_wifi/bus/CMakeLists.txt @@ -8,16 +8,18 @@ set(NRF_WIFI_DIR ${ZEPHYR_CURRENT_MODULE_DIR}) if (CONFIG_NRF70_BUSLIB) - zephyr_compile_definitions_ifdef(CONFIG_NRF70_ON_QSPI - # These are XIP related anomalies and aren't applicable for nRF7002 and cause - # throughput issues. - -DNRF53_ERRATA_43_ENABLE_WORKAROUND=0 - -DNRF52_ERRATA_215_ENABLE_WORKAROUND=0 - # nRF70 QSPI doesn't use 192MHz clock and most samples use 128MHz, this can cause anomaly 159 - # but as its rare and not seen in most cases, we can disable it. - # Alternative is 128MHz CPU should be disabled that impacts Wi-Fi performance. - -DNRF53_ERRATA_159_ENABLE_WORKAROUND=0 - ) + if(CONFIG_NRF70_ON_QSPI OR CONFIG_NORDIC_QSPI_NOR) + zephyr_compile_definitions( + # These are XIP related anomalies and aren't applicable for nRF7002 and cause + # throughput issues. + -DNRF53_ERRATA_43_ENABLE_WORKAROUND=0 + -DNRF52_ERRATA_215_ENABLE_WORKAROUND=0 + # nRF70 QSPI doesn't use 192MHz clock and most samples use 128MHz, this can cause anomaly 159 + # but as its rare and not seen in most cases, we can disable it. + # Alternative is 128MHz CPU should be disabled that impacts Wi-Fi performance. + -DNRF53_ERRATA_159_ENABLE_WORKAROUND=0 + ) + endif() zephyr_library_named(nrf70-buslib) zephyr_library_include_directories(