mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
oak: rev5: increase cycle time for LED in SUSPEND
Increase LED blink cycle time to reduce power consumption on Oak rev5 with GlaDOS ID. BUG=chrome-os-partner:50317 TEST=`make EXTRA_CFLAGS=-DBOARD_REV=5 BOARD=oak -j` Change-Id: Ic00512434965471a82b94ef431e0ec88c9e4c0c3 Reviewed-on: https://chromium-review.googlesource.com/332346 Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org> Tested-by: Wei-Ning Huang <wnhuang@chromium.org> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
3424deb481
commit
51fa74ec6f
@@ -202,9 +202,16 @@ static void oak_led_set_battery(int board_version)
|
||||
bat_led_set(BAT_LED_GREEN, 0);
|
||||
else if (chipset_in_state(CHIPSET_STATE_ON))
|
||||
bat_led_set(BAT_LED_GREEN, 1);
|
||||
else if (chipset_in_state(CHIPSET_STATE_SUSPEND))
|
||||
else if (chipset_in_state(CHIPSET_STATE_SUSPEND)) {
|
||||
int cycle_time = 4;
|
||||
/* Oak rev5 with GlaDOS ID has a extremely power
|
||||
* comsuming LED. Increase LED blink cycle time to reduce
|
||||
* S3 power comsuption. */
|
||||
if (board_version >= OAK_REV5)
|
||||
cycle_time = 10;
|
||||
bat_led_set(BAT_LED_GREEN,
|
||||
(battery_second & 3) ? 0 : 1);
|
||||
(battery_second % cycle_time) ? 0 : 1);
|
||||
}
|
||||
|
||||
/* BAT LED behavior:
|
||||
* Fully charged / idle: Off
|
||||
|
||||
Reference in New Issue
Block a user