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 
7 void die_notify(void)
8 {
9  if (ENV_POSTCAR) {
10  return;
11  }
12 
13  /* Make SATA LED blink */
14  while (1) {
15  gpio_set(GPP_E8, 1);
16  mdelay(100);
17  gpio_set(GPP_E8, 0);
18  mdelay(100);
19  }
20 }
#define GPP_E8
__weak void die_notify(void)
Definition: die.c:12
void mdelay(unsigned int msecs)
Definition: delay.c:2
void gpio_set(gpio_t gpio, int value)
Definition: gpio.c:174
#define ENV_POSTCAR
Definition: rules.h:154