xref: /aosp_15_r20/external/coreboot/src/lib/fallback_boot.c (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <fallback.h>
4 #include <watchdog.h>
5 
6 /* Implement platform specific override. */
set_boot_successful(void)7 void __weak set_boot_successful(void) { }
8 
boot_successful(void)9 void boot_successful(void)
10 {
11 	if (CONFIG(FRAMEBUFFER_SET_VESA_MODE) &&
12 	    CONFIG(VGA_TEXT_FRAMEBUFFER)) {
13 		void vbe_textmode_console(void);
14 
15 		vbe_textmode_console();
16 	}
17 
18 	/* Remember this was a successful boot */
19 	set_boot_successful();
20 
21 	/* turn off the boot watchdog */
22 	watchdog_off();
23 }
24