soc: ene: move init code from SYS_INIT to hooks

Replace SYS_INIT with SoC hooks and adapt SoC init code

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-09-10 09:42:31 -04:00 committed by Henrik Brix Andersen
parent 5c541ffd30
commit c9e0a4b843
2 changed files with 2 additions and 4 deletions

View file

@ -7,3 +7,4 @@ config SOC_KB1200
select CPU_HAS_ARM_MPU
select CPU_CORTEX_M_HAS_DWT
select CPU_HAS_FPU
select SOC_EARLY_INIT_HOOK

View file

@ -39,11 +39,8 @@ static void clock_init(void)
}
}
static int kb1200_init(void)
void soc_early_init_hook(void)
{
clock_init();
pmu_init();
return 0;
}
SYS_INIT(kb1200_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);