summaryrefslogtreecommitdiff
path: root/src/mainboard/hp/pro_3500_series/led.c
blob: 073f5f501f844425668086c8f1ef2a9c99a988d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* SPDX-License-Identifier: GPL-2.0-only */

#include "common_defines.h"
#include "led.h"

void set_power_led(int state)
{
	// Board has a dual color LED
	it8772f_gpio_setup(
		GPIO_DEV,
		2,			/* set */
		0xf3 | LED_BOTH,	/* select, 0xf3 is default */
		state,			/* polarity */
		0x00,			/* pullup */
		LED_BOTH,		/* output */
		0x00);			/* enable */
}