zephyr/soc/intel/intel_adsp/common/soc.c
Anas Nashif 810f978bed Revert parts of "soc: intel: move init code from SYS_INIT to hooks"
This reverts parts of commit c344771d8b
related to intel_adsp soc.

There is a dependency on device initialization that was missed.

Reverting until we have a proper way for migrating to hooks.

Fixes #78880

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-09-23 18:13:17 -04:00

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);