soc: quicklogic: 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
911d5532bb
commit
f585e852ed
2 changed files with 2 additions and 5 deletions
|
|
@ -8,3 +8,4 @@ config SOC_EOS_S3
|
||||||
select CPU_HAS_ARM_MPU
|
select CPU_HAS_ARM_MPU
|
||||||
select CPU_HAS_FPU
|
select CPU_HAS_FPU
|
||||||
select EOS_S3_HAL
|
select EOS_S3_HAL
|
||||||
|
select SOC_EARLY_INIT_HOOK
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ static void eos_s3_cru_init(void)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static int eos_s3_init(void)
|
void soc_early_init_hook(void)
|
||||||
{
|
{
|
||||||
/* Clocks setup */
|
/* Clocks setup */
|
||||||
eos_s3_lock_enable();
|
eos_s3_lock_enable();
|
||||||
|
|
@ -64,8 +64,4 @@ static int eos_s3_init(void)
|
||||||
|
|
||||||
/* Enable UART interrupt */
|
/* Enable UART interrupt */
|
||||||
INTR_CTRL->OTHER_INTR_EN_M4 = UART_INTR_EN_M4;
|
INTR_CTRL->OTHER_INTR_EN_M4 = UART_INTR_EN_M4;
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SYS_INIT(eos_s3_init, PRE_KERNEL_1, 0);
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue