Skip to content

Commit 7a09aa4

Browse files
krish2718rado17
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]>
1 parent da78ae4 commit 7a09aa4

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

drivers/wifi/nrf_wifi/CMakeLists.txt

-11
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

+12
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ endif()
1212
set(NRF_WIFI_DIR ${ZEPHYR_CURRENT_MODULE_DIR})
1313

1414
if (CONFIG_NRF70_BUSLIB)
15+
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+
)
26+
1527
zephyr_library_named(nrf70-buslib)
1628
zephyr_library_include_directories(
1729
inc

0 commit comments

Comments
 (0)