Skip to content

Commit db5270b

Browse files
cvinayakcarlescufi
authored andcommitted
Bluetooth: controller: nRF53x: SWI mapping should use SOC define
SWI IRQ line mapping for nRF5340 shall use CONFIG_SOC_NRF5340_CPUNET for conditional compilation instead of the board define, so as to allow new boards to use the BLE controller implementation. Fixes #30488. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent d7c2f8a commit db5270b

File tree

1 file changed

+7
-1
lines changed
  • subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5

1 file changed

+7
-1
lines changed

subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/swi.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
/* nRF51 and nRF52 Series IRQ mapping*/
78
#if defined(CONFIG_SOC_SERIES_NRF51X) || defined(CONFIG_SOC_COMPATIBLE_NRF52X)
89

910
#define HAL_SWI_RADIO_IRQ SWI4_IRQn
@@ -16,9 +17,12 @@
1617
#define HAL_SWI_JOB_IRQ SWI5_IRQn
1718
#endif
1819

20+
/* nRF53 Series IRQ mapping */
1921
#elif defined(CONFIG_SOC_SERIES_NRF53X)
2022

21-
#if defined(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET)
23+
/* nRF53 Series Engineering D and Revision 1 IRQ mapping */
24+
#if defined(CONFIG_SOC_NRF5340_CPUNET) && \
25+
!defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUNET)
2226

2327
#define HAL_SWI_RADIO_IRQ SWI2_IRQn
2428
#define HAL_SWI_WORKER_IRQ RTC0_IRQn
@@ -30,8 +34,10 @@
3034
#define HAL_SWI_JOB_IRQ SWI3_IRQn
3135
#endif
3236

37+
/* nRF53 Series Engineering A IRQ mapping */
3338
#elif defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUNET)
3439

40+
/* NOTE: nRF5340 Engineering A Errata [29] SWI: SWIRQ is not functional */
3541
#define HAL_SWI_RADIO_IRQ EGU0_IRQn
3642
#define HAL_SWI_WORKER_IRQ RTC0_IRQn
3743

0 commit comments

Comments
 (0)