You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
501 B
31 lines
501 B
/* |
|
* 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);
|
|
|