coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
die.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <console/console.h>
4 #include <delay.h>
5 #include <gpio.h>
6 #include <soc/gpio.h>
7 
8 void die_notify(void)
9 {
10  if (ENV_POSTCAR)
11  return;
12 
13  /* Make SATA LED blink */
14  gpio_output(GPP_E8, 1);
15 
16  while (1) {
17  gpio_set(GPP_E8, 0);
18  mdelay(100);
19  gpio_set(GPP_E8, 1);
20  mdelay(100);
21  }
22 }
#define GPP_E8
__weak void die_notify(void)
Definition: die.c:12
void mdelay(unsigned int msecs)
Definition: delay.c:2
void gpio_output(gpio_t gpio, int value)
Definition: gpio.c:194
void gpio_set(gpio_t gpio, int value)
Definition: gpio.c:174
#define ENV_POSTCAR
Definition: rules.h:154