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

@ -3,7 +3,7 @@
# Copyright (c) 2021 ASPEED Technology Inc.
config SOC_FAMILY_ASPEED
select PLATFORM_SPECIFIC_INIT
select SOC_RESET_HOOK
if SOC_FAMILY_ASPEED

View file

@ -84,7 +84,7 @@ struct sb_header sbh __attribute((used, section(".sboot"))) = {
.img_size = (uint32_t)&__bss_start,
};
void z_arm_platform_init(void)
void soc_reset_hook(void)
{
uint32_t jtag_pinmux;
uint32_t base = DT_REG_ADDR(DT_NODELABEL(syscon));