1 /* 2 * Copyright (c) 2022 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #include <zephyr/init.h> 7 #include <zephyr/linker/section_tags.h> 8 9 extern void power_init(void); 10 extern void adsp_clock_init(void); 11 12 #if CONFIG_MP_MAX_NUM_CPUS > 1 13 extern void soc_mp_init(void); 14 #endif 15 soc_init(void)16static __imr int soc_init(void) 17 { 18 power_init(); 19 20 #ifdef CONFIG_ADSP_CLOCK 21 adsp_clock_init(); 22 #endif 23 24 #if CONFIG_MP_MAX_NUM_CPUS > 1 25 soc_mp_init(); 26 #endif 27 28 return 0; 29 } 30 31 SYS_INIT(soc_init, PRE_KERNEL_1, 99); 32