1# Kernel init hook options
2
3# Copyright (c) 2024 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6
7menu "SoC and Board Hooks"
8
9config SOC_RESET_HOOK
10	bool "Run early SoC reset hook"
11	help
12	  Run an early SoC reset hook.
13
14	  A custom hook soc_reset_hook() is executed at the beginning of the
15	  startup code (__start). soc_reset_hook() must be implemented by the SoC.
16
17config SOC_PREP_HOOK
18	bool "Run early SoC preparation hook"
19	help
20	  Run an early SoC preparation hook.
21
22	  A custom hook soc_prep_hook() is executed at the beginning of the
23	  c prep code (prep_c). soc_prep_hook() must be implemented by the SoC.
24
25config SOC_EARLY_INIT_HOOK
26	bool "Run early SoC hook"
27	help
28	  Run an early SoC initialization hook.
29
30	  A custom SoC hook soc_early_init_hook() is executed before the kernel and
31	  devices are initialized
32
33config SOC_LATE_INIT_HOOK
34	bool "Run late SoC hook"
35	help
36	  Run a late SoC initialization hook.
37
38	  A custom SoC hook soc_late_init_hook() is executed after the kernel and
39	  devices are initialized
40
41config SOC_PER_CORE_INIT_HOOK
42	bool "Run SoC per-core initialization hook"
43	help
44	  Run an SoC initialization hook for every core
45
46	  A custom SoC hook soc_per_core_init_hook() is executeds at the end of
47	  arch_kernel_init() for the primary core, and at the end of arch_secondary_cpu_init()
48	  for secondary cores.
49
50config BOARD_EARLY_INIT_HOOK
51	bool "Run early board hook"
52	help
53	  Run an early board initialization hook.
54
55	  A custom board hook board_early_init_hook() is executed before the kernel and
56	  devices are initialized
57
58config BOARD_LATE_INIT_HOOK
59	bool "Run late board hook"
60	help
61	  Run a late board initialization hook.
62
63	  A custom board hook board_late_init_hook() is executed after the kernel and
64	  devices are initialized
65
66endmenu
67