diff options
-rw-r--r-- | board/puff/board.c | 15 | ||||
-rw-r--r-- | board/puff/led.c | 6 |
2 files changed, 17 insertions, 4 deletions
diff --git a/board/puff/board.c b/board/puff/board.c index 77a1e74b79..02ade160fd 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -65,12 +65,21 @@ const unsigned int spi_devices_used = ARRAY_SIZE(spi_devices); /******************************************************************************/ /* PWM channels. Must be in the exactly same order as in enum pwm_channel. */ const struct pwm_t pwm_channels[] = { - [PWM_CH_FAN] = {.channel = 5, .flags = PWM_CONFIG_OPEN_DRAIN, - .freq = 25000}, + [PWM_CH_FAN] = { .channel = 5, + .flags = PWM_CONFIG_OPEN_DRAIN, + .freq = 25000}, + [PWM_CH_LED_RED] = { .channel = 0, + .flags = PWM_CONFIG_ACTIVE_LOW | + PWM_CONFIG_DSLEEP, + .freq = 2000 }, + [PWM_CH_LED_GREEN] = { .channel = 2, + .flags = PWM_CONFIG_ACTIVE_LOW | + PWM_CONFIG_DSLEEP, + .freq = 2000 }, }; /******************************************************************************/ -/* USB-C TPCP Configuration */ +/* USB-C TCPC Configuration */ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_MAX_COUNT] = { }; struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { diff --git a/board/puff/led.c b/board/puff/led.c index 648a9ac0b2..1b814e8aa0 100644 --- a/board/puff/led.c +++ b/board/puff/led.c @@ -2,7 +2,11 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * - * Power and battery LED control for Puff + * Power LED control for Puff. + * Solid green - active power + * Green flashing - suspended + * Red flashing - alert + * Solid red - critical */ #include "chipset.h" |