Skip to content

Commit 86a89bb

Browse files
krish2718rlubos
authored andcommitted
[nrf fromtree] soc: nordic: nrf71: Add support to enable Wi-Fi debug
To debug Wi-Fi cores, we need to enable access to Wi-Fi debug registers. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no> (cherry picked from commit 863fe89)
1 parent c07e2aa commit 86a89bb

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

soc/nordic/nrf71/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ config SOC_NRF7120_ENGA_CPUAPP
2626

2727
config SOC_NRF7120_ENGA_CPUFLPR
2828
select RISCV_CORE_NORDIC_VPR
29+
30+
if SOC_SERIES_NRF71
31+
32+
config SOC_NRF71_WIFI_DAP
33+
bool "nRF71 Wi-Fi Debug access port for debugging"
34+
help
35+
This controls the Wi-Fi AHB Debug AP (DAP) for debugging nRF71 Wi-Fi cores.
36+
37+
endif # SOC_SERIES_NRF71

soc/nordic/nrf71/soc.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ static void wifi_mpc_configuration(void)
138138
override.endaddr = 0x200E0000;
139139
override.index = 0;
140140
mpc_configure_override(NRF_MPC03, &override);
141+
142+
if (IS_ENABLED(CONFIG_SOC_NRF71_WIFI_DAP)) {
143+
/* Allow access to Wi-Fi debug interface registers */
144+
init_mpc_region_override(&override);
145+
override.start_address = 0x48000000;
146+
override.endaddr = 0x48100000;
147+
override.index = index++;
148+
mpc_configure_override(NRF_MPC00, &override);
149+
}
141150
}
142151

143152
static void grtc_configuration(void)

0 commit comments

Comments
 (0)