|
26 | 26 | #if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE) |
27 | 27 | #include <nrf_ironside/cpuconf.h> |
28 | 28 | #endif |
| 29 | +#if defined(CONFIG_SOC_NRF54H20_TDD_ENABLE) |
| 30 | +#include <nrf_ironside/tdd.h> |
| 31 | +#endif |
29 | 32 |
|
30 | 33 | LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL); |
31 | 34 |
|
@@ -171,10 +174,19 @@ void soc_early_init_hook(void) |
171 | 174 | } |
172 | 175 | } |
173 | 176 |
|
174 | | -#if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE) |
| 177 | +#if defined(CONFIG_SOC_LATE_INIT_HOOK) |
| 178 | + |
175 | 179 | void soc_late_init_hook(void) |
176 | 180 | { |
177 | | - int err; |
| 181 | +#if defined(CONFIG_SOC_NRF54H20_TDD_ENABLE) |
| 182 | + int err_tdd; |
| 183 | + |
| 184 | + err_tdd = ironside_se_tdd_configure(IRONSIDE_SE_TDD_CONFIG_ON_DEFAULT); |
| 185 | + __ASSERT(err_tdd == 0, "err_tdd was %d", err_tdd); |
| 186 | +#endif |
| 187 | + |
| 188 | +#if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE) |
| 189 | + int err_cpuconf; |
178 | 190 |
|
179 | 191 | /* The msg will be used for communication prior to IPC |
180 | 192 | * communication being set up. But at this moment no such |
@@ -213,8 +225,10 @@ void soc_late_init_hook(void) |
213 | 225 | /* Don't wait as this is not yet supported. */ |
214 | 226 | bool cpu_wait = false; |
215 | 227 |
|
216 | | - err = ironside_cpuconf(NRF_PROCESSOR_RADIOCORE, radiocore_address, cpu_wait, msg, msg_size); |
217 | | - __ASSERT(err == 0, "err was %d", err); |
| 228 | + err_cpuconf = ironside_cpuconf(NRF_PROCESSOR_RADIOCORE, radiocore_address, cpu_wait, msg, |
| 229 | + msg_size); |
| 230 | + __ASSERT(err_cpuconf == 0, "err_cpuconf was %d", err_cpuconf); |
| 231 | +#endif |
218 | 232 | } |
219 | 233 | #endif |
220 | 234 |
|
|
0 commit comments