summaryrefslogtreecommitdiff
path: root/board/bloog/board.c
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2019-03-22 11:56:22 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-04-20 03:58:24 -0700
commited6936cf4218f6c316615da1b9f3658a845ce24b (patch)
treeba030111855d537a1122a43d3933417c7a070576 /board/bloog/board.c
parente4c9dbe8bd1d659fe2a0637069744c6150561cf8 (diff)
downloadchrome-ec-ed6936cf4218f6c316615da1b9f3658a845ce24b.tar.gz
bloog: implement leds
1. bloog have two charging leds on left side and right side. each side have two colors amber and white. 2. bloog have a power led indicate to power state suspend/off. The led behavior define as following: 1. 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) 2. Power led: System is S0: White System is suspend/S0ix: Blinking white (1 sec on, 1 sec off) System is S5: Off BUG=b:126460269 BRANCH=none TEST=Make sure led behavior intended. Change-Id: I080b83e11c96d5dda6ef193679ad8f4d2935db19 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/1557844 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org> Reviewed-by: Marco Chen <marcochen@chromium.org>
Diffstat (limited to 'board/bloog/board.c')
-rw-r--r--board/bloog/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/board/bloog/board.c b/board/bloog/board.c
index 075d587e5b..694b1d071c 100644
--- a/board/bloog/board.c
+++ b/board/bloog/board.c
@@ -252,8 +252,10 @@ void board_hibernate_late(void)
const uint32_t hibernate_pins[][2] = {
/* Turn off LEDs before going to hibernate */
- {GPIO_BAT_LED_WHITE_L, GPIO_INPUT | GPIO_PULL_UP},
- {GPIO_BAT_LED_AMBER_L, GPIO_INPUT | GPIO_PULL_UP},
+ {GPIO_LED_WHITE_C0_L, GPIO_INPUT | GPIO_PULL_UP},
+ {GPIO_LED_AMBER_C0_L, GPIO_INPUT | GPIO_PULL_UP},
+ {GPIO_LED_WHITE_C1_L, GPIO_INPUT | GPIO_PULL_UP},
+ {GPIO_LED_AMBER_C1_L, GPIO_INPUT | GPIO_PULL_UP},
};
for (i = 0; i < ARRAY_SIZE(hibernate_pins); ++i)