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:
Anas Nashif 2024-09-10 09:42:42 -04:00 committed by Henrik Brix Andersen
parent 911d5532bb
commit f585e852ed
2 changed files with 2 additions and 5 deletions

View File

@ -8,3 +8,4 @@ config SOC_EOS_S3
select CPU_HAS_ARM_MPU
select CPU_HAS_FPU
select EOS_S3_HAL
select SOC_EARLY_INIT_HOOK

View File

@ -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 */
eos_s3_lock_enable();
@ -64,8 +64,4 @@ static int eos_s3_init(void)
/* Enable UART interrupt */
INTR_CTRL->OTHER_INTR_EN_M4 = UART_INTR_EN_M4;
return 0;
}
SYS_INIT(eos_s3_init, PRE_KERNEL_1, 0);