soc: nordic: vpr: use SystemInit() as soc_reset_hook

Similarly to ARM cores, VPRs should call `SystemInit()`
at reset.

Signed-off-by: Marcin Szymczyk <marcin.szymczyk@nordicsemi.no>
This commit is contained in:
Marcin Szymczyk 2025-01-23 12:50:33 +01:00 committed by Benjamin Cabé
commit 0b52052a19
3 changed files with 5 additions and 7 deletions

View file

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

View file

@ -3,13 +3,11 @@
add_subdirectory_ifdef(CONFIG_RISCV_CORE_NORDIC_VPR vpr)
if(CONFIG_ARM)
# Let SystemInit() be called in place of soc_reset_hook() by default.
zephyr_linker_symbol(SYMBOL soc_reset_hook 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)
endif()
# This file is used when the CMake linker script generator is disabled.
zephyr_linker_sources(SECTIONS platform_init.ld)
zephyr_library_sources_ifdef(CONFIG_POWEROFF poweroff.c)
if(CONFIG_ARM)