blob: 495381638fb087eaed968daeafb3cdc09a17e72b [file] [log] [blame]
Anas Nashife260d032023-09-13 12:03:10 +00001# 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
Anas Nashife9474302024-09-09 07:03:27 -040030 A custom SoC hook soc_early_init_hook() is executed before the kernel and
31 devices are initialized
32
Anas Nashife260d032023-09-13 12:03:10 +000033config SOC_LATE_INIT_HOOK
34 bool "Run late SoC hook"
35 help
36 Run a late SoC initialization hook.
37
Anas Nashife9474302024-09-09 07:03:27 -040038 A custom SoC hook soc_late_init_hook() is executed after the kernel and
39 devices are initialized
40
Yong Cong Sinde347a42024-10-30 22:19:51 +080041config 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
Anas Nashife260d032023-09-13 12:03:10 +000050config BOARD_EARLY_INIT_HOOK
51 bool "Run early board hook"
52 help
53 Run an early board initialization hook.
54
Anas Nashife9474302024-09-09 07:03:27 -040055 A custom board hook board_early_init_hook() is executed before the kernel and
56 devices are initialized
57
Anas Nashife260d032023-09-13 12:03:10 +000058config BOARD_LATE_INIT_HOOK
59 bool "Run late board hook"
60 help
61 Run a late board initialization hook.
62
Anas Nashife9474302024-09-09 07:03:27 -040063 A custom board hook board_late_init_hook() is executed after the kernel and
64 devices are initialized
65
Anas Nashife260d032023-09-13 12:03:10 +000066endmenu