2023-09-13 20:03:10 +08:00
|
|
|
# Kernel init hook options
|
|
|
|
|
|
|
|
# Copyright (c) 2024 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
menu "SoC and Board Hooks"
|
|
|
|
|
|
|
|
config SOC_RESET_HOOK
|
|
|
|
bool "Run early SoC reset hook"
|
|
|
|
help
|
|
|
|
Run an early SoC reset hook.
|
|
|
|
|
|
|
|
A custom hook soc_reset_hook() is executed at the beginning of the
|
|
|
|
startup code (__start). soc_reset_hook() must be implemented by the SoC.
|
|
|
|
|
|
|
|
config SOC_PREP_HOOK
|
|
|
|
bool "Run early SoC preparation hook"
|
|
|
|
help
|
|
|
|
Run an early SoC preparation hook.
|
|
|
|
|
|
|
|
A custom hook soc_prep_hook() is executed at the beginning of the
|
|
|
|
c prep code (prep_c). soc_prep_hook() must be implemented by the SoC.
|
|
|
|
|
|
|
|
config SOC_EARLY_INIT_HOOK
|
|
|
|
bool "Run early SoC hook"
|
|
|
|
help
|
|
|
|
Run an early SoC initialization hook.
|
|
|
|
|
2024-09-09 19:03:27 +08:00
|
|
|
A custom SoC hook soc_early_init_hook() is executed before the kernel and
|
|
|
|
devices are initialized
|
|
|
|
|
2023-09-13 20:03:10 +08:00
|
|
|
config SOC_LATE_INIT_HOOK
|
|
|
|
bool "Run late SoC hook"
|
|
|
|
help
|
|
|
|
Run a late SoC initialization hook.
|
|
|
|
|
2024-09-09 19:03:27 +08:00
|
|
|
A custom SoC hook soc_late_init_hook() is executed after the kernel and
|
|
|
|
devices are initialized
|
|
|
|
|
2024-10-30 22:19:51 +08:00
|
|
|
config SOC_PER_CORE_INIT_HOOK
|
|
|
|
bool "Run SoC per-core initialization hook"
|
|
|
|
help
|
|
|
|
Run an SoC initialization hook for every core
|
|
|
|
|
|
|
|
A custom SoC hook soc_per_core_init_hook() is executeds at the end of
|
|
|
|
arch_kernel_init() for the primary core, and at the end of arch_secondary_cpu_init()
|
|
|
|
for secondary cores.
|
|
|
|
|
2023-09-13 20:03:10 +08:00
|
|
|
config BOARD_EARLY_INIT_HOOK
|
|
|
|
bool "Run early board hook"
|
|
|
|
help
|
|
|
|
Run an early board initialization hook.
|
|
|
|
|
2024-09-09 19:03:27 +08:00
|
|
|
A custom board hook board_early_init_hook() is executed before the kernel and
|
|
|
|
devices are initialized
|
|
|
|
|
2023-09-13 20:03:10 +08:00
|
|
|
config BOARD_LATE_INIT_HOOK
|
|
|
|
bool "Run late board hook"
|
|
|
|
help
|
|
|
|
Run a late board initialization hook.
|
|
|
|
|
2024-09-09 19:03:27 +08:00
|
|
|
A custom board hook board_late_init_hook() is executed after the kernel and
|
|
|
|
devices are initialized
|
|
|
|
|
2023-09-13 20:03:10 +08:00
|
|
|
endmenu
|