summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/jecht/led.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mainboard/google/jecht/led.c b/src/mainboard/google/jecht/led.c
index 50cf32e3e1..286b65e542 100644
--- a/src/mainboard/google/jecht/led.c
+++ b/src/mainboard/google/jecht/led.c
@@ -19,10 +19,18 @@
void set_power_led(int state)
{
+ int polarity;
+
+ if (IS_ENABLED(CONFIG_BOARD_GOOGLE_TIDUS)) {
+ polarity = state == LED_OFF ? 0x00 : 0x01;
+ } else {
+ polarity = state == LED_BLINK ? 0x01 : 0x00;
+ }
+
it8772f_gpio_led(IT8772F_GPIO_DEV,
1, /* set */
0x01, /* select */
- state == LED_OFF ? 0x00 : 0x01, /* polarity */
+ polarity, /* polarity */
state == LED_BLINK ? 0x01 : 0x00, /* pullup/pulldown */
0x01, /* output */
state == LED_BLINK ? 0x00 : 0x01, /* I/O function */