mb/google/nissa/var/rull: Change padbased_override to rtd3 of wifi
[coreboot2.git] / src / mainboard / protectli / vault_adl_p / die.c
blob838572df5d2f770b5ed68eaf8a94fb333a43b1b2
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/console.h>
4 #include <soc/gpio.h>
5 #include <delay.h>
6 #include <gpio.h>
8 #include "board_beep.h"
10 static void beep_and_blink(void)
12 static uint8_t blink = 0;
13 static uint8_t beep_count = 0;
15 gpio_set(GPP_B14, blink);
16 /* Beep 12 times at most, constant beeps may be annoying */
17 if (beep_count < 12) {
18 do_beep(800, 300);
19 mdelay(200);
20 beep_count++;
21 } else {
22 mdelay(500);
25 blink ^= 1;
28 void die_notify(void)
30 if (ENV_POSTCAR)
31 return;
33 /* Make SATA LED blink and use PC SPKR */
34 gpio_output(GPP_B14, 0);
36 while (1) {
37 beep_and_blink();
38 beep_and_blink();
39 beep_and_blink();
40 beep_and_blink();
41 delay(2);