soc: nordic: nrf54h: Allow using NFCT pins as gpios on cpurad
NFCT is by default assigned to application so DT node does not need to be enabled or reserved in DT to have access to NFCT registers. On cpurad NFCT must be reserved to enable register access and then antenna pins can be configured as gpios. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
b84dd5b600
commit
1dc42fc227
1 changed files with 3 additions and 1 deletions
|
@ -153,7 +153,9 @@ void soc_early_init_hook(void)
|
|||
nrf_spu_periph_perm_dmasec_set(spu, nrf_address_slave_get(ccm030_addr), true);
|
||||
#endif
|
||||
|
||||
if (DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), disabled) &&
|
||||
if (((IS_ENABLED(CONFIG_SOC_NRF54H20_CPUAPP) &&
|
||||
DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), disabled)) ||
|
||||
DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), reserved)) &&
|
||||
DT_PROP_OR(DT_NODELABEL(nfct), nfct_pins_as_gpios, 0)) {
|
||||
nrf_nfct_pad_config_enable_set(NRF_NFCT, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue