mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-15 00:56:22 +00:00
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>
16 lines
387 B
Makefile
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
|