Message ID | 20241018155557.2184819-1-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Delegated to: | Bin Meng |
Headers | show |
Series | [v1,1/1] x86: cpu: Describe board final hooks in the header | expand |
On Fri, 18 Oct 2024 at 09:56, Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote: > > The new two declarations board_final_init() and board_final_cleanup() > need a description. Add it here. > > Suggested-by: Simon Glass <sjg@chromium.org> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > arch/x86/include/asm/cpu.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > Reviewed-by: Simon Glass <sjg@chromium.org> > 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 >
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
The new two declarations board_final_init() and board_final_cleanup() need a description. Add it here. Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- arch/x86/include/asm/cpu.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)