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:
parent
5c541ffd30
commit
c9e0a4b843
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue