Skip to content

Commit 47ddbc2

Browse files
Jedrzej Ciupismbolivar-nordic
authored andcommitted
soc: arm: nordic: fix GPIO pin forwarder initialization
nRF5340 application core should not attempt to pass control over any pins to the nRF5340 network core if the latter is disabled. This commit fixes #43476. Signed-off-by: Jedrzej Ciupis <[email protected]>
1 parent c96f084 commit 47ddbc2

File tree

1 file changed

+3
-2
lines changed
  • soc/arm/nordic_nrf/nrf53

1 file changed

+3
-2
lines changed

soc/arm/nordic_nrf/nrf53/soc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ extern void z_arm_nmi_init(void);
4848
#error "Unknown nRF53 SoC."
4949
#endif
5050

51-
#if (!defined(CONFIG_TRUSTED_EXECUTION_NONSECURE) || defined(CONFIG_BUILD_WITH_TFM)) && \
52-
defined(CONFIG_SOC_NRF5340_CPUAPP) && DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_gpio_forwarder)
51+
#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_gpio_forwarder) && \
52+
defined(CONFIG_BOARD_ENABLE_CPUNET) && \
53+
(!defined(CONFIG_TRUSTED_EXECUTION_NONSECURE) || defined(CONFIG_BUILD_WITH_TFM))
5354
#define NRF_GPIO_FORWARDER_FOR_NRF5340_CPUAPP_ENABLED
5455
#endif
5556

0 commit comments

Comments
 (0)