Commit 0b52052a authored by Marcin Szymczyk's avatar Marcin Szymczyk Committed by Benjamin Cabé
Browse files

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

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

Signed-off-by: default avatarMarcin Szymczyk <marcin.szymczyk@nordicsemi.no>
parent d7525cd5
Loading
Loading
Loading
Loading
+1 −1
Changes for soc/nordic/Kconfig: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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
+1 −3
Changes for soc/nordic/common/CMakeLists.txt: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -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@")

# This file is used when the CMake linker script generator is disabled.
  zephyr_linker_sources(SECTIONS arm_platform_init.ld)
endif()
zephyr_linker_sources(SECTIONS platform_init.ld)

zephyr_library_sources_ifdef(CONFIG_POWEROFF poweroff.c)
if(CONFIG_ARM)