Files
OpenCellular/board/grunt/build.mk
Simon Glass 074acb0cd7 grunt: Add power/battery LED support
Replace the current led code with an implementation that uses the new
led_pwm interface. Grunt has a blue LED which we use for power and an
amber LED which we use for battery.

The colours used are documented in update_leds() in led_pwm.c

BUG=b:71902053
BRANCH=none
TEST=manual
Check for the various states:
 * Solid Amber == Charging
 * Solid Blue == Charging (near full)
 * Fast Flash Amber == Charging error or battery not present

Did not test low / critical battery

Change-Id: Ie46075855ab17e6e7301025b62e57db2c596b2a4
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/919765
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
2018-02-16 15:12:30 -08:00

16 lines
387 B
Makefile

# -*- makefile -*-
# Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Board specific files build
#
CHIP:=npcx
CHIP_FAMILY:=npcx7
CHIP_VARIANT:=npcx7m6f
board-y=board.o led.o
board-$(CONFIG_BATTERY_SMART)+=battery.o
board-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o