zephyr/soc/intel/intel_adsp/common/soc.c

32 lines
501 B
C

/*
* Copyright (c) 2022 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/init.h>
#include <zephyr/linker/section_tags.h>
extern void power_init(void);
extern void adsp_clock_init(void);
#if CONFIG_MP_MAX_NUM_CPUS > 1
extern void soc_mp_init(void);
#endif
static __imr int soc_init(void)
{
power_init();
#ifdef CONFIG_ADSP_CLOCK
adsp_clock_init();
#endif
#if CONFIG_MP_MAX_NUM_CPUS > 1
soc_mp_init();
#endif
return 0;
}
SYS_INIT(soc_init, PRE_KERNEL_1, 99);