File tree 5 files changed +14
-8
lines changed
5 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ config BT_HCI_VS
39
39
40
40
config BOARD_ENABLE_CPUNET
41
41
bool "NRF53 Network MCU"
42
+ select SOC_NRF_GPIO_FORWARDER_FOR_NRF5340 if \
43
+ $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_GPIO_FORWARDER))
42
44
help
43
45
This option enables releasing the Network 'force off' signal, which
44
46
as a consequence will power up the Network MCU during system boot.
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ config BOARD_ENABLE_DCDC_HV
22
22
23
23
config BOARD_ENABLE_CPUNET
24
24
bool "NRF53 Network MCU"
25
+ select SOC_NRF_GPIO_FORWARDER_FOR_NRF5340 if \
26
+ $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_GPIO_FORWARDER))
25
27
help
26
28
This option enables releasing the Network 'force off' signal, which
27
29
as a consequence will power up the Network MCU during system boot.
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ config BOARD_ENABLE_DCDC_HV
34
34
35
35
config BOARD_ENABLE_CPUNET
36
36
bool "NRF53 Network MCU"
37
+ select SOC_NRF_GPIO_FORWARDER_FOR_NRF5340 if \
38
+ $(dt_compat_enabled,$(DT_COMPAT_NORDIC_NRF_GPIO_FORWARDER))
37
39
help
38
40
This option enables releasing the Network 'force off' signal, which
39
41
as a consequence will power up the Network MCU during system boot.
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ config SOC_DCDC_NRF53X_HV
45
45
help
46
46
Enable nRF53 series System on Chip High Voltage DC/DC converter.
47
47
48
+ config SOC_NRF_GPIO_FORWARDER_FOR_NRF5340
49
+ bool
50
+ depends on NRF_SOC_SECURE_SUPPORTED
51
+ help
52
+ hidden option for including the nRF GPIO pin forwarding
53
+
48
54
if !TRUSTED_EXECUTION_NONSECURE || BUILD_WITH_TFM
49
55
50
56
config SOC_ENABLE_LFXO
Original file line number Diff line number Diff line change @@ -51,13 +51,7 @@ extern void z_arm_nmi_init(void);
51
51
#error "Unknown nRF53 SoC."
52
52
#endif
53
53
54
- #if DT_HAS_COMPAT_STATUS_OKAY (nordic_nrf_gpio_forwarder ) && \
55
- defined(CONFIG_BOARD_ENABLE_CPUNET ) && \
56
- (!defined(CONFIG_TRUSTED_EXECUTION_NONSECURE ) || defined(CONFIG_BUILD_WITH_TFM ))
57
- #define NRF_GPIO_FORWARDER_FOR_NRF5340_CPUAPP_ENABLED
58
- #endif
59
-
60
- #if defined(NRF_GPIO_FORWARDER_FOR_NRF5340_CPUAPP_ENABLED )
54
+ #if defined(CONFIG_SOC_NRF_GPIO_FORWARDER_FOR_NRF5340 )
61
55
#define GPIOS_PSEL_BY_IDX (node_id , prop , idx ) \
62
56
NRF_DT_GPIOS_TO_PSEL_BY_IDX(node_id, prop, idx),
63
57
#define ALL_GPIOS_IN_NODE (node_id ) \
@@ -169,7 +163,7 @@ static int nordicsemi_nrf53_init(const struct device *arg)
169
163
nrf_regulators_dcdcen_vddh_set (NRF_REGULATORS , true);
170
164
#endif
171
165
172
- #if defined(NRF_GPIO_FORWARDER_FOR_NRF5340_CPUAPP_ENABLED )
166
+ #if defined(CONFIG_SOC_NRF_GPIO_FORWARDER_FOR_NRF5340 )
173
167
static const uint8_t forwarded_psels [] = {
174
168
DT_FOREACH_STATUS_OKAY (nordic_nrf_gpio_forwarder , ALL_GPIOS_IN_FORWARDER )
175
169
};
You can’t perform that action at this time.
0 commit comments