coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
led.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
superio/ite/it8772f/it8772f.h
>
4
#include "../../onboard.h"
5
6
void
set_power_led
(
int
state
)
7
{
8
it8772f_gpio_led
(
IT8772F_GPIO_DEV
,
9
1,
/* set */
10
0x01,
/* select */
11
state
==
LED_BLINK
? 0x01 : 0x00,
/* polarity */
12
state
==
LED_BLINK
? 0x01 : 0x00,
/* pullup/pulldown */
13
0x01,
/* output */
14
state
==
LED_BLINK
? 0x00 : 0x01,
/* I/O function */
15
SIO_GPIO_BLINK_GPIO10
,
16
IT8772F_GPIO_BLINK_FREQUENCY_1_HZ
);
17
}
set_power_led
void set_power_led(int state)
Definition:
led.c:6
IT8772F_GPIO_DEV
#define IT8772F_GPIO_DEV
Definition:
onboard.h:28
LED_BLINK
@ LED_BLINK
Definition:
onboard.h:39
it8772f.h
SIO_GPIO_BLINK_GPIO10
#define SIO_GPIO_BLINK_GPIO10
Definition:
it8772f.h:90
IT8772F_GPIO_BLINK_FREQUENCY_1_HZ
#define IT8772F_GPIO_BLINK_FREQUENCY_1_HZ
Definition:
it8772f.h:97
state
state
Definition:
raminit.c:1787
it8772f_gpio_led
void it8772f_gpio_led(pnp_devfn_t dev, int set, u8 select, u8 polarity, u8 pullup, u8 output, u8 enable, u8 led_pin_map, u8 led_freq)
Definition:
early_init.c:53
src
mainboard
google
beltino
variants
mccloud
led.c
Generated by
1.9.1