On Fri, 18 Oct 2024 at 09:56, Andy Shevchenko <[email protected]> wrote: > > The new two declarations board_final_init() and board_final_cleanup() > need a description. Add it here. > > Suggested-by: Simon Glass <[email protected]> > Signed-off-by: Andy Shevchenko <[email protected]> > --- > arch/x86/include/asm/cpu.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) >
Reviewed-by: Simon Glass <[email protected]> > 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 >

