arch: arm: replace PLATFORM_SPECIFIC_INIT with PLATFORM_RESET_HOOK

Use generic hook infrastrucutre instead of custom Kconfig and hooks for
ARM.

Replace z_arm_platform_init() with platform_reset().

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2024-08-06 09:17:48 -04:00 committed by Carles Cufí
commit f519dd1411
105 changed files with 150 additions and 146 deletions

View file

@ -9,4 +9,4 @@ config SOC_SERIES_GD32A50X
select CPU_CORTEX_M33
select GD32_HAS_AF_PINMUX
select GD32_HAS_IRC_40K
select PLATFORM_SPECIFIC_INIT
select SOC_RESET_HOOK

View file

@ -8,7 +8,7 @@
#include <soc.h>
/* initial ecc memory */
void z_arm_platform_init(void)
void soc_reset_hook(void)
{
register unsigned r0 __asm("r0") = DT_REG_ADDR(DT_CHOSEN(zephyr_sram));
register unsigned r1 __asm("r1") =