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

@ -8,7 +8,7 @@
config SOC_FAMILY_NORDIC_NRF
select SOC_COMPATIBLE_NRF
select PLATFORM_SPECIFIC_INIT if ARM
select SOC_RESET_HOOK if ARM
if SOC_FAMILY_NORDIC_NRF

View file

@ -4,8 +4,8 @@
add_subdirectory_ifdef(CONFIG_RISCV_CORE_NORDIC_VPR vpr)
if(CONFIG_ARM)
# Let SystemInit() be called in place of z_arm_platform_init() by default.
zephyr_linker_symbol(SYMBOL z_arm_platform_init EXPR "@SystemInit@")
# Let SystemInit() be called in place of soc_reset_hook() by default.
zephyr_linker_symbol(SYMBOL soc_reset_hook EXPR "@SystemInit@")
# This file is used when the CMake linker script generator is disabled.
zephyr_linker_sources(SECTIONS arm_platform_init.ld)

View file

@ -4,5 +4,5 @@
* SPDX-License-Identifier: Apache-2.0
*/
/* Let SystemInit() be called in place of z_arm_platform_init() by default. */
PROVIDE(z_arm_platform_init = SystemInit);
/* Let SystemInit() be called in place of soc_reset_hook() by default. */
PROVIDE(soc_reset_hook = SystemInit);