2323#include <soc_lrcconf.h>
2424#include <dmm.h>
2525#include <zephyr/drivers/firmware/nrf_ironside/cpuconf.h>
26+ #include <zephyr/drivers/firmware/nrf_ironside/tdd.h>
2627
2728LOG_MODULE_REGISTER (soc , CONFIG_SOC_LOG_LEVEL );
2829
@@ -159,10 +160,19 @@ void soc_early_init_hook(void)
159160 }
160161}
161162
162- #if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE )
163+ #if defined(CONFIG_SOC_LATE_INIT_HOOK )
164+
163165void soc_late_init_hook (void )
164166{
165- int err ;
167+ #if defined(CONFIG_SOC_NRF54H20_ENABLE_TDD_WITH_PINS )
168+ int err_tdd ;
169+
170+ err_tdd = ironside_tdd (IRONSIDE_TDD_CONFIG_ON_DEFAULT );
171+ __ASSERT (err_tdd == 0 , "err_tdd was %d" , err_tdd );
172+ #endif
173+
174+ #if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE )
175+ int err_cpuconf ;
166176
167177 /* The msg will be used for communication prior to IPC
168178 * communication being set up. But at this moment no such
@@ -178,8 +188,9 @@ void soc_late_init_hook(void)
178188 /* Don't wait as this is not yet supported. */
179189 bool cpu_wait = false;
180190
181- err = ironside_cpuconf (NRF_PROCESSOR_RADIOCORE , radiocore_address , cpu_wait , msg , msg_size );
182- __ASSERT (err == 0 , "err was %d" , err );
191+ err_cpuconf = ironside_cpuconf (NRF_PROCESSOR_RADIOCORE , radiocore_address , cpu_wait , msg , msg_size );
192+ __ASSERT (err_cpuconf == 0 , "err_cpuconf was %d" , err_cpuconf );
193+ #endif
183194}
184195#endif
185196
0 commit comments