Skip to content

Commit c729a59

Browse files
committed
kernel/Kconfig.init: update description of SOC_RESET_HOOK
Updated description on conditions and assumptions in which the soc_reset_hook is executed. Signed-off-by: Andrzej Puzdrowski <[email protected]>
1 parent c4a375a commit c729a59

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

kernel/Kconfig.init

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,17 @@ config SOC_EARLY_RESET_HOOK
2929
Additional constraints may be imposed on the hook by the architecture.
3030

3131
config SOC_RESET_HOOK
32-
bool "Run early SoC reset hook"
32+
bool "Run SoC-specific reset hook"
3333
help
34-
Run an early SoC reset hook.
34+
Run a SoC-specific hook in the reset/startup code (__start).
3535

36-
A custom hook soc_reset_hook() is executed at the beginning of the
37-
startup code (__start). soc_reset_hook() must be implemented by the SoC.
36+
A custom hook soc_reset_hook() will be executed near the beginning
37+
of the architecture-specific startup code, after hardware has been
38+
configured (as required by CONFIG_INIT_ARCH_HW_AT_BOOT), a stack
39+
pointer has been loaded and the architecture's own resume logic
40+
has executed (if CONFIG_PM_S2RAM is enabled). Because this hook
41+
runs after the resume logic, it is not called when the system
42+
resumes from a suspend-to-RAM power state.
3843

3944
config SOC_PREP_HOOK
4045
bool "Run early SoC preparation hook"

0 commit comments

Comments
 (0)