mb/google/nissa/var/rull: Add 6W and 15W DPTF parameters
[coreboot2.git] / src / mainboard / protectli / vault_cml / die.c
blob34fa75b1a3a52c90bdd585eed4ec8ae2f702156e
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_E8, 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_E8, 0);
34 while (1) {
35 beep_and_blink();
36 beep_and_blink();
37 beep_and_blink();
38 beep_and_blink();
39 delay(2);