Skip to content

Commit ad17ea8

Browse files
krish2718carlescufi
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 a4b75c0 commit ad17ea8

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
@@ -72,17 +72,6 @@ zephyr_library_sources_ifdef(CONFIG_NRF70_DEBUG_SHELL
7272
src/debug_shell.c
7373
)
7474

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

8877
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)