diff --git a/soc/adi/max32/Kconfig b/soc/adi/max32/Kconfig index 80642dc3399..c845cc6c35c 100644 --- a/soc/adi/max32/Kconfig +++ b/soc/adi/max32/Kconfig @@ -10,6 +10,7 @@ config SOC_FAMILY_MAX32 select CPU_CORTEX_M_HAS_SYSTICK select CLOCK_CONTROL select BUILD_OUTPUT_HEX + select SOC_EARLY_INIT_HOOK config SOC_MAX32655 select CPU_CORTEX_M4 diff --git a/soc/adi/max32/soc.c b/soc/adi/max32/soc.c index 5c7f875d029..c509e8e5cf3 100644 --- a/soc/adi/max32/soc.c +++ b/soc/adi/max32/soc.c @@ -26,16 +26,9 @@ bool z_arm_on_enter_cpu_idle(void) * @brief Perform basic hardware initialization at boot. * * This needs to be run from the very beginning. - * So the init priority has to be 0 (zero). - * - * @return 0 */ -static int max32xxx_init(void) +void soc_early_init_hook(void) { /* Apply device related preinit configuration */ max32xx_system_init(); - - return 0; } - -SYS_INIT(max32xxx_init, PRE_KERNEL_1, 0);