Joel Linn | a70493d | 2024-03-02 13:59:52 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
3 | #include "common_defines.h" | ||||
4 | #include "led.h" | ||||
5 | |||||
6 | void set_power_led(int state) | ||||
7 | { | ||||
8 | // Board has a dual color LED | ||||
9 | it8772f_gpio_setup( | ||||
10 | GPIO_DEV, | ||||
11 | 2, /* set */ | ||||
12 | 0xf3 | LED_BOTH, /* select, 0xf3 is default */ | ||||
13 | state, /* polarity */ | ||||
14 | 0x00, /* pullup */ | ||||
15 | LED_BOTH, /* output */ | ||||
16 | 0x00); /* enable */ | ||||
17 | } |