Stefan Reinauer | de3206a | 2010-02-22 06:09:43 +0000 | [diff] [blame] | 1 | #include <fallback.h> |
| 2 | #include <watchdog.h> |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 3 | |
Kyösti Mälkki | 7ce1a75 | 2016-12-11 12:56:37 +0200 | [diff] [blame] | 4 | /* Implement platform specific override. */ |
Aaron Durbin | 6403167 | 2018-04-21 14:45:32 -0600 | [diff] [blame] | 5 | void __weak set_boot_successful(void) { } |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 6 | |
| 7 | void boot_successful(void) |
| 8 | { |
Nico Huber | 6d8266b | 2017-05-20 16:46:01 +0200 | [diff] [blame] | 9 | if (IS_ENABLED(CONFIG_FRAMEBUFFER_SET_VESA_MODE) && |
| 10 | IS_ENABLED(CONFIG_VGA_TEXT_FRAMEBUFFER)) { |
| 11 | void vbe_textmode_console(void); |
Stefan Reinauer | d650e99 | 2010-02-22 04:33:13 +0000 | [diff] [blame] | 12 | |
Nico Huber | 6d8266b | 2017-05-20 16:46:01 +0200 | [diff] [blame] | 13 | vbe_textmode_console(); |
| 14 | } |
| 15 | |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 16 | /* Remember this was a successful boot */ |
| 17 | set_boot_successful(); |
| 18 | |
| 19 | /* turn off the boot watchdog */ |
| 20 | watchdog_off(); |
| 21 | } |