riscv: Call bootm_final()

Make use of this function, adding some pieces needed by RISC-V

Drop the udc_disconnect() from EFI_LOADER since it is now done in
bootm_final()

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-07-12 13:30:31 +02:00
parent d095cf76ba
commit a1ae8de12c
3 changed files with 9 additions and 24 deletions

View File

@@ -7,17 +7,24 @@
#include <bootm.h>
#include <bootstage.h>
#include <usb.h>
#include <dm/root.h>
void bootm_final(enum bootm_final_t flags)
{
printf("\nStarting kernel ...\n\n");
printf("\nStarting kernel ...%s\n\n", flags & BOOTM_FINAL_FAKE ?
"(fake run for tracing)" : "");
bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
if (IS_ENABLED(CONFIG_BOOTSTAGE_FDT) && IS_ENABLED(CONFIG_CMD_FDT))
bootstage_fdt_add_report();
if (IS_ENABLED(CONFIG_BOOTSTAGE_REPORT))
bootstage_report();
if (IS_ENABLED(CONFIG_USB_DEVICE))
udc_disconnect();
/*
* Call remove function of all devices with a removal flag set.
* This may be useful for last-stage operations, like cancelling