Skip to content

Commit 036ed0e

Browse files
committed
[nrf fromtree] soc: nordic: common: Fix SD2PPI global configuration
Use feature Kconfig instead of SoC Kconfig to determine initialization priority as SD2PPI is not unique to only a single SoC. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no> (cherry picked from commit 61271f7)
1 parent c3956d6 commit 036ed0e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

soc/nordic/common/gppi_init.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,12 @@ static int gppi_init(void)
143143

144144
#if defined(CONFIG_NRFX_GPPI) && !defined(CONFIG_NRFX_GPPI_V1)
145145

146-
/* For nrf54h20 GPPI requires that ironside communication is up so delay the initialization. */
147-
#define GPPI_INIT_STATE COND_CODE_1(IS_ENABLED(CONFIG_SOC_NRF54H20_CPUAPP), (POST_KERNEL), (EARLY))
146+
/* For SD2PPI GPPI it is required that ironside communication is up so delay the initialization. */
147+
#define GPPI_INIT_STATE \
148+
COND_CODE_1(IS_ENABLED(CONFIG_NRFX_GPPI_SD2PPI_GLOBAL), (POST_KERNEL), (EARLY))
148149

149150
#define GPPI_INIT_PRIO \
150-
COND_CODE_1(IS_ENABLED(CONFIG_SOC_NRF54H20_CPUAPP), \
151+
COND_CODE_1(IS_ENABLED(CONFIG_NRFX_GPPI_SD2PPI_GLOBAL), \
151152
(UTIL_INC(CONFIG_IRONSIDE_SE_CALL_INIT_PRIORITY)), (0))
152153

153154
SYS_INIT(gppi_init, GPPI_INIT_STATE, GPPI_INIT_PRIO);

0 commit comments

Comments
 (0)