soc: mcxc: replace PLATFORM_SPECIFIC_INIT with PLATFORM_RESET_HOOK
Generic hook infrastrucutre was added to Zephyr, but NXP MCXC SoCs were not updated accordingly. Use generic hook infrastrucutre for MCXC SoCs. Signed-off-by: Michal Smola <michal.smola@nxp.com>
This commit is contained in:
parent
b211e1b3a3
commit
684a27d8ef
2 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ config SOC_SERIES_MCXC
|
||||||
select CPU_CORTEX_M_HAS_SYSTICK
|
select CPU_CORTEX_M_HAS_SYSTICK
|
||||||
select CPU_CORTEX_M_HAS_VTOR
|
select CPU_CORTEX_M_HAS_VTOR
|
||||||
select CLOCK_CONTROL
|
select CLOCK_CONTROL
|
||||||
select PLATFORM_SPECIFIC_INIT
|
select SOC_RESET_HOOK
|
||||||
select HAS_MCUX
|
select HAS_MCUX
|
||||||
select HAS_MCUX_ADC16
|
select HAS_MCUX_ADC16
|
||||||
select HAS_MCUX_SIM
|
select HAS_MCUX_SIM
|
||||||
|
|
|
@ -99,13 +99,13 @@ static int mcxc_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PLATFORM_SPECIFIC_INIT
|
#ifdef CONFIG_SOC_RESET_HOOK
|
||||||
|
|
||||||
void z_arm_platform_init(void)
|
void soc_reset_hook(void)
|
||||||
{
|
{
|
||||||
SystemInit();
|
SystemInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_PLATFORM_SPECIFIC_INIT */
|
#endif /* CONFIG_SOC_RESET_HOOK */
|
||||||
|
|
||||||
SYS_INIT(mcxc_init, PRE_KERNEL_1, 0);
|
SYS_INIT(mcxc_init, PRE_KERNEL_1, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue