Bluetooth: controller: Revert back to using EGU in nRF5340PDK

Refer to nRF5340 Engineering A Errata 29.
[29] SWI: SWIRQ is not functional.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2020-08-26 19:10:47 +05:30 committed by Carles Cufí
parent 5a40aa073d
commit 293aa54ef3

View file

@ -18,6 +18,8 @@
#elif defined(CONFIG_SOC_SERIES_NRF53X)
#if defined(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET)
#define HAL_SWI_RADIO_IRQ SWI2_IRQn
#define HAL_SWI_WORKER_IRQ RTC0_IRQn
@ -27,8 +29,23 @@
#else
#define HAL_SWI_JOB_IRQ SWI3_IRQn
#endif
#elif defined(CONFIG_BOARD_NRF5340PDK_NRF5340_CPUNET)
#define HAL_SWI_RADIO_IRQ EGU0_IRQn
#define HAL_SWI_WORKER_IRQ RTC0_IRQn
#if !defined(CONFIG_BT_CTLR_LOW_LAT) && \
(CONFIG_BT_CTLR_ULL_HIGH_PRIO == CONFIG_BT_CTLR_ULL_LOW_PRIO)
#define HAL_SWI_JOB_IRQ HAL_SWI_WORKER_IRQ
#else
#error "Use an unused IRQ line to implement a second SW IRQ."
#endif
#endif /* CONFIG_BOARD_NRF5340PDK_NRF5340_CPUNET */
#endif /* CONFIG_SOC_SERIES_NRF53X */
static inline void hal_swi_init(void)
{
/* No platform-specific initialization required. */