Anas Nashif | e260d03 | 2023-09-13 12:03:10 +0000 | [diff] [blame] | 1 | # Kernel init hook options |
| 2 | |
| 3 | # Copyright (c) 2024 Intel Corporation |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | |
| 6 | |
| 7 | menu "SoC and Board Hooks" |
| 8 | |
| 9 | config 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 | |
| 17 | config 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 | |
| 25 | config SOC_EARLY_INIT_HOOK |
| 26 | bool "Run early SoC hook" |
| 27 | help |
| 28 | Run an early SoC initialization hook. |
| 29 | |
Anas Nashif | e947430 | 2024-09-09 07:03:27 -0400 | [diff] [blame] | 30 | A custom SoC hook soc_early_init_hook() is executed before the kernel and |
| 31 | devices are initialized |
| 32 | |
Anas Nashif | e260d03 | 2023-09-13 12:03:10 +0000 | [diff] [blame] | 33 | config SOC_LATE_INIT_HOOK |
| 34 | bool "Run late SoC hook" |
| 35 | help |
| 36 | Run a late SoC initialization hook. |
| 37 | |
Anas Nashif | e947430 | 2024-09-09 07:03:27 -0400 | [diff] [blame] | 38 | A custom SoC hook soc_late_init_hook() is executed after the kernel and |
| 39 | devices are initialized |
| 40 | |
Yong Cong Sin | de347a4 | 2024-10-30 22:19:51 +0800 | [diff] [blame] | 41 | config 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 Nashif | e260d03 | 2023-09-13 12:03:10 +0000 | [diff] [blame] | 50 | config BOARD_EARLY_INIT_HOOK |
| 51 | bool "Run early board hook" |
| 52 | help |
| 53 | Run an early board initialization hook. |
| 54 | |
Anas Nashif | e947430 | 2024-09-09 07:03:27 -0400 | [diff] [blame] | 55 | A custom board hook board_early_init_hook() is executed before the kernel and |
| 56 | devices are initialized |
| 57 | |
Anas Nashif | e260d03 | 2023-09-13 12:03:10 +0000 | [diff] [blame] | 58 | config BOARD_LATE_INIT_HOOK |
| 59 | bool "Run late board hook" |
| 60 | help |
| 61 | Run a late board initialization hook. |
| 62 | |
Anas Nashif | e947430 | 2024-09-09 07:03:27 -0400 | [diff] [blame] | 63 | A custom board hook board_late_init_hook() is executed after the kernel and |
| 64 | devices are initialized |
| 65 | |
Anas Nashif | e260d03 | 2023-09-13 12:03:10 +0000 | [diff] [blame] | 66 | endmenu |