summaryrefslogtreecommitdiff
path: root/board/dirinboz/board.h
diff options
context:
space:
mode:
authorZick Wei <zick.wei@quanta.corp-partner.google.com>2020-07-31 13:44:52 +0800
committerCommit Bot <commit-bot@chromium.org>2020-08-20 23:51:08 +0000
commit4e65dfbc00b2b75a3436bb69148ca722d58b5252 (patch)
treea05fbc935290e2515ab087338463edfeeb4b1f5d /board/dirinboz/board.h
parent259c0d8133e523f1f7925442c1bb7352383975dc (diff)
downloadchrome-ec-4e65dfbc00b2b75a3436bb69148ca722d58b5252.tar.gz
dirinboz: add LED behavior
dirinboz have two charging leds on left side and right side. each side have two colors amber and white. The led behavior define as following: Charging led: led on with charging port active, other port is off. Charging: Amber. Discharging: Off. Battery Error: Blinking white (0.4 sec on, 0.4 sec off) Fuel < 10%: Blinking white on right side port (1 sec on, 1 sec off) Force idle for factory: Blinking amber (1 sec on, 1 sec off) System suspend with non-charging state: Blinking both side LED white (1 sec on, 1 sec off) BUG=none BRANCH=none TEST=make sure led behavior intended. make sure ectool led left white/amber/off/auto work correctly. make sure ectool led right white/amber/off/auto work correctly. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I3a182b1608554cf82fdb3b76917c01321d8d473d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2331983 Reviewed-by: Edward Hill <ecgh@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board/dirinboz/board.h')
-rw-r--r--board/dirinboz/board.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/dirinboz/board.h b/board/dirinboz/board.h
index 25af2d988d..2538918873 100644
--- a/board/dirinboz/board.h
+++ b/board/dirinboz/board.h
@@ -28,8 +28,8 @@
#define GPIO_USB1_ILIM_SEL IOEX_USB_A0_CHARGE_EN_L
#define GPIO_USB2_ILIM_SEL IOEX_USB_A1_CHARGE_EN_DB_L
-/* Power LEDs */
-#define CONFIG_LED_POWER_LED
+/* LED */
+#undef CONFIG_LED_ONOFF_STATES
/* Motion sensing drivers */
#define CONFIG_ACCELGYRO_LSM6DSM