Skip to content

Commit dd13d61

Browse files
krish2718jfischer-no
authored andcommitted
[nrf fromlist] nrf_wifi: Move QSPI defines to buslib
These are QSPI related which is part of buslib. Upstream PR #: 88897 Signed-off-by: Chaitanya Tata <[email protected]> (cherry picked from commit ad17ea8)
1 parent 2a58b21 commit dd13d61

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

drivers/wifi/nrf_wifi/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,6 @@ zephyr_library_sources_ifdef(CONFIG_NRF70_DEBUG_SHELL
7070
src/debug_shell.c
7171
)
7272

73-
zephyr_compile_definitions_ifdef(CONFIG_NRF70_ON_QSPI
74-
# These are XIP related anomalies and aren't applicable for nRF7002 and cause
75-
# throughput issues.
76-
-DNRF53_ERRATA_43_ENABLE_WORKAROUND=0
77-
-DNRF52_ERRATA_215_ENABLE_WORKAROUND=0
78-
# nRF70 QSPI doesn't use 192MHz clock and most samples use 128MHz, this can cause anomaly 159
79-
# but as its rare and not seen in most cases, we can disable it.
80-
# Alternative is 128MHz CPU should be disabled that impacts Wi-Fi performance.
81-
-DNRF53_ERRATA_159_ENABLE_WORKAROUND=0
82-
)
83-
8473
zephyr_library_link_libraries(nrf70-buslib nrf-wifi-shim)
8574

8675
if (CONFIG_NRF_WIFI_PATCHES_BUILTIN)

modules/nrf_wifi/bus/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
set(NRF_WIFI_DIR ${ZEPHYR_CURRENT_MODULE_DIR})
88

99
if (CONFIG_NRF70_BUSLIB)
10+
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+
)
21+
1022
zephyr_library_named(nrf70-buslib)
1123
zephyr_library_include_directories(
1224
inc

0 commit comments

Comments
 (0)