|
23 | 23 | #include <soc_lrcconf.h> |
24 | 24 | #include <dmm.h> |
25 | 25 | #include <zephyr/drivers/firmware/nrf_ironside/cpuconf.h> |
| 26 | +#include <zephyr/drivers/firmware/nrf_ironside/tdd.h> |
26 | 27 |
|
27 | 28 | LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL); |
28 | 29 |
|
@@ -168,10 +169,19 @@ void soc_early_init_hook(void) |
168 | 169 | } |
169 | 170 | } |
170 | 171 |
|
171 | | -#if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE) |
| 172 | +#if defined(CONFIG_SOC_LATE_INIT_HOOK) |
| 173 | + |
172 | 174 | void soc_late_init_hook(void) |
173 | 175 | { |
174 | | - int err; |
| 176 | +#if defined(CONFIG_SOC_NRF54H20_TDD_ENABLE) |
| 177 | + int err_tdd; |
| 178 | + |
| 179 | + err_tdd = ironside_se_tdd_configure(IRONSIDE_SE_TDD_CONFIG_ON_DEFAULT); |
| 180 | + __ASSERT(err_tdd == 0, "err_tdd was %d", err_tdd); |
| 181 | +#endif |
| 182 | + |
| 183 | +#if defined(CONFIG_SOC_NRF54H20_CPURAD_ENABLE) |
| 184 | + int err_cpuconf; |
175 | 185 |
|
176 | 186 | /* The msg will be used for communication prior to IPC |
177 | 187 | * communication being set up. But at this moment no such |
@@ -210,8 +220,10 @@ void soc_late_init_hook(void) |
210 | 220 | /* Don't wait as this is not yet supported. */ |
211 | 221 | bool cpu_wait = false; |
212 | 222 |
|
213 | | - err = ironside_cpuconf(NRF_PROCESSOR_RADIOCORE, radiocore_address, cpu_wait, msg, msg_size); |
214 | | - __ASSERT(err == 0, "err was %d", err); |
| 223 | + err_cpuconf = ironside_cpuconf(NRF_PROCESSOR_RADIOCORE, radiocore_address, cpu_wait, msg, |
| 224 | + msg_size); |
| 225 | + __ASSERT(err_cpuconf == 0, "err_cpuconf was %d", err_cpuconf); |
| 226 | +#endif |
215 | 227 | } |
216 | 228 | #endif |
217 | 229 |
|
|
0 commit comments