blob: e4a128e291c1c09a69b7c5741742e69c72d0b42e [file] [log] [blame]
Stefan Reinauerde3206a2010-02-22 06:09:43 +00001#include <fallback.h>
2#include <watchdog.h>
Eric Biederman8ca8d762003-04-22 19:02:15 +00003
Kyösti Mälkki7ce1a752016-12-11 12:56:37 +02004/* Implement platform specific override. */
Aaron Durbin64031672018-04-21 14:45:32 -06005void __weak set_boot_successful(void) { }
Yinghai Lu13f1c2a2005-07-08 02:49:49 +00006
7void boot_successful(void)
8{
Nico Huber6d8266b2017-05-20 16:46:01 +02009 if (IS_ENABLED(CONFIG_FRAMEBUFFER_SET_VESA_MODE) &&
10 IS_ENABLED(CONFIG_VGA_TEXT_FRAMEBUFFER)) {
11 void vbe_textmode_console(void);
Stefan Reinauerd650e992010-02-22 04:33:13 +000012
Nico Huber6d8266b2017-05-20 16:46:01 +020013 vbe_textmode_console();
14 }
15
Yinghai Lu13f1c2a2005-07-08 02:49:49 +000016 /* Remember this was a successful boot */
17 set_boot_successful();
18
19 /* turn off the boot watchdog */
20 watchdog_off();
21}