Skip to content

Commit 1de0e83

Browse files
committed
[nrf fromtree] soc: nordic: common: gppi_sd2ppi: Fix NRF_SPU dependency
Use DPPIC nodes to detect if certain SPU associated with that DPPIC is present. NRF_SPUxxx defines are created even if SPU instances are not present. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no> (cherry picked from commit 2fc1f87)
1 parent e5f16bc commit 1de0e83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

soc/nordic/common/nrfx_gppi_sd2ppi_global.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ static int actual_channel_mask(nrfx_gppi_node_id_t node_id, uint32_t *ch_mask, b
420420
NRF_SPU133,
421421
NRF_SPU134,
422422
NRF_SPU135,
423-
IF_ENABLED(NRFX_INSTANCE_PRESENT(SPU136), (NRF_SPU136,))
424-
IF_ENABLED(NRFX_INSTANCE_PRESENT(SPU137), (NRF_SPU137,))
423+
IF_ENABLED(DT_NODE_EXISTS(DT_NODELABEL(dppic135)), (NRF_SPU136,))
424+
IF_ENABLED(DT_NODE_EXISTS(DT_NODELABEL(dppic136)), (NRF_SPU137,))
425425
NRF_SPU122,
426426
};
427427
uint32_t out_mask = 0;

0 commit comments

Comments
 (0)