Skip to content

Commit 0b52052

Browse files
masz-nordickartben
authored andcommitted
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>
1 parent d7525cd commit 0b52052

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

soc/nordic/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
config SOC_FAMILY_NORDIC_NRF
1010
select SOC_COMPATIBLE_NRF
11-
select SOC_RESET_HOOK if ARM
11+
select SOC_RESET_HOOK
1212
select CMSIS_CORE_HAS_SYSTEM_CORE_CLOCK if ARM
1313

1414
if SOC_FAMILY_NORDIC_NRF

soc/nordic/common/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33

44
add_subdirectory_ifdef(CONFIG_RISCV_CORE_NORDIC_VPR vpr)
55

6-
if(CONFIG_ARM)
7-
# Let SystemInit() be called in place of soc_reset_hook() by default.
8-
zephyr_linker_symbol(SYMBOL soc_reset_hook EXPR "@SystemInit@")
6+
# Let SystemInit() be called in place of soc_reset_hook() by default.
7+
zephyr_linker_symbol(SYMBOL soc_reset_hook EXPR "@SystemInit@")
98

10-
# This file is used when the CMake linker script generator is disabled.
11-
zephyr_linker_sources(SECTIONS arm_platform_init.ld)
12-
endif()
9+
# This file is used when the CMake linker script generator is disabled.
10+
zephyr_linker_sources(SECTIONS platform_init.ld)
1311

1412
zephyr_library_sources_ifdef(CONFIG_POWEROFF poweroff.c)
1513
if(CONFIG_ARM)

0 commit comments

Comments
 (0)