mb/google/brya: Create rull variant
[coreboot2.git] / src / mainboard / protectli / vault_ehl / die.c
blob00366dcad96f1225c13b4254bb4d375b06439357
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <pc80/i8254.h>
5 #include <delay.h>
6 #include <gpio.h>
8 static void beep_and_blink(void)
10 static uint8_t blink = 0;
11 static uint8_t beep_count = 0;
13 gpio_set(GPP_E0, blink);
14 /* Beep 12 times at most, constant beeps may be annoying */
15 if (beep_count < 12) {
16 beep(800, 300);
17 mdelay(200);
18 beep_count++;
19 } else {
20 mdelay(500);
23 blink ^= 1;
26 void die_notify(void)
28 if (ENV_POSTCAR)
29 return;
31 /* Make SATA LED blink and use PC SPKR */
32 gpio_output(GPP_E0, 0);
34 while (1) {
35 beep_and_blink();
36 beep_and_blink();
37 beep_and_blink();
38 beep_and_blink();
39 delay(2);