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