diff options
Diffstat (limited to 'src/mainboard/asrock/imb-1222/panic.c')
-rw-r--r-- | src/mainboard/asrock/imb-1222/panic.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mainboard/asrock/imb-1222/panic.c b/src/mainboard/asrock/imb-1222/panic.c new file mode 100644 index 0000000000..a538209fc8 --- /dev/null +++ b/src/mainboard/asrock/imb-1222/panic.c @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <delay.h> +#include <console/console.h> +#include <mainboard/beep.h> + +static void panic(void) +{ + while (1) { + mainboard_beep_and_blink_on_panic_once(); + mdelay(200); + mainboard_beep_and_blink_on_panic_once(); + mdelay(200); + mainboard_beep_and_blink_on_panic_once(); + delay(1); + } +} + +void die_notify(void) +{ + if (ENV_POSTCAR) + return; + + panic(); +} |