1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <superio/ite/it8772f/it8772f.h>
6 void set_power_led(int state
)
10 if (CONFIG(BOARD_GOOGLE_TIDUS
)) {
11 polarity
= state
== LED_OFF
? 0x00 : 0x01;
13 polarity
= state
== LED_BLINK
? 0x01 : 0x00;
16 it8772f_gpio_led(IT8772F_GPIO_DEV
,
19 polarity
, /* polarity */
20 state
== LED_BLINK
? 0x01 : 0x00, /* pullup/pulldown */
22 state
== LED_BLINK
? 0x00 : 0x01, /* I/O function */
23 SIO_GPIO_BLINK_GPIO10
,
24 IT8772F_GPIO_BLINK_FREQUENCY_1_HZ
);