[PATCH v1 1/1] x86: cpu: Describe board final hooks in the header

Andy Shevchenko andriy.shevchenko at linux.intel.com
Fri Oct 18 17:55:57 CEST 2024


The new two declarations board_final_init() and board_final_cleanup()
need a description. Add it here.

Suggested-by: Simon Glass <sjg at chromium.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
---
 arch/x86/include/asm/cpu.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h
index d71bc1b80c05..a5b2043f7de1 100644
--- a/arch/x86/include/asm/cpu.h
+++ b/arch/x86/include/asm/cpu.h
@@ -298,7 +298,20 @@ u32 cpu_get_stepping(void);
  */
 int cpu_phys_address_size(void);
 
+/**
+ * board_final_init() - Final initialization hook (optional)
+ *
+ * Implements a custom initialization for boards that need to do it
+ * before the system is ready.
+ */
 void board_final_init(void);
+
+/**
+ * board_final_cleanup() - Final cleanup hook (optional)
+ *
+ * Implements a custom cleanup for boards that need to do it before
+ * booting the OS.
+ */
 void board_final_cleanup(void);
 
 #ifndef CONFIG_EFI_STUB
-- 
2.43.0.rc1.1336.g36b5255a03ac



More information about the U-Boot mailing list