Skip to content

Commit 9f20e79

Browse files
PetervdPerk-NXPnashif
authored andcommitted
soc: nxp: s32: S32K3 use early reset to init ECC ram before using it.
SOC_RESET_HOOK is already too late because the code touches ram already instead use the newer SOC_EARLY_RESET_HOOK so we can do ECC initialization before using the memory Signed-off-by: Peter van der Perk <[email protected]>
1 parent 7a9ca8e commit 9f20e79

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

soc/nxp/s32/s32k3/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ zephyr_library_sources_ifdef(CONFIG_DT_HAS_NXP_S32K3_PMC_ENABLED pmc.c)
1010

1111
zephyr_library_sources_ifdef(CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS mpu_regions.c)
1212
zephyr_linker_sources(SECTIONS sections.ld)
13-
zephyr_library_sources_ifdef(CONFIG_SOC_RESET_HOOK s32k3xx_startup.S)
13+
zephyr_library_sources_ifdef(CONFIG_SOC_EARLY_RESET_HOOK s32k3xx_startup.S)
1414

1515
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")

soc/nxp/s32/s32k3/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ config SOC_SERIES_S32K3
1212
select CPU_HAS_ICACHE
1313
select CPU_HAS_DCACHE
1414
select CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS
15-
select SOC_RESET_HOOK if XIP
15+
select SOC_EARLY_RESET_HOOK if XIP
1616
select USE_DT_CODE_PARTITION if XIP
1717
select CLOCK_CONTROL
1818
select HAS_MCUX

soc/nxp/s32/s32k3/s32k3xx_startup.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
_ASM_FILE_PROLOGUE
1616

17-
GTEXT(soc_reset_hook)
17+
GTEXT(soc_early_reset_hook)
1818

19-
SECTION_FUNC(TEXT, soc_reset_hook)
19+
SECTION_FUNC(TEXT, soc_early_reset_hook)
2020

2121
/*
2222
* On destructive reset, SRAM and TCM memories must be initialized to a known value using a

0 commit comments

Comments
 (0)