blob: 073f5f501f844425668086c8f1ef2a9c99a988d6 [file] [log] [blame]
Joel Linna70493d2024-03-02 13:59:52 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include "common_defines.h"
4#include "led.h"
5
6void 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}