summaryrefslogtreecommitdiff
path: root/src/mainboard/opencellular/elgon/death.c
blob: 514456c2a66118d67494a7b1cb7d5b4a8764f980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0-only */

#include <soc/gpio.h>
#include <console/console.h>
#include <delay.h>
#include "mainboard.h"

void die_notify(void)
{
	const u32 rate = 1000 / 10; // blink at 5 Hz

	do {
		gpio_output(ELGON_GPIO_ERROR_LED, 0);
		mdelay(rate);
		gpio_output(ELGON_GPIO_ERROR_LED, 1);
		mdelay(rate);
	} while (1);
}