blob: a538209fc812a2ccc4bced6213703062efe9091d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
}
|