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 
4 #include "../../onboard.h"
5 
7 {
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 */
17 }
void set_power_led(int state)
Definition: led.c:6
#define IT8772F_GPIO_DEV
Definition: onboard.h:28
@ LED_BLINK
Definition: onboard.h:39
#define SIO_GPIO_BLINK_GPIO10
Definition: it8772f.h:90
#define IT8772F_GPIO_BLINK_FREQUENCY_1_HZ
Definition: it8772f.h:97
state
Definition: raminit.c:1787
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