summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames_Chao <james_chao@asus.corp-partner.google.com>2018-11-21 14:43:18 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-22 19:08:05 -0800
commit9d1f8bbdcf6d1614ae0962a7168205f63a602a75 (patch)
tree1a15a76f8288ec4651acadeb7459f72a02cc5d9e
parent6411a5423abea4651448ef9494e9c31d881bd01f (diff)
downloadchrome-ec-9d1f8bbdcf6d1614ae0962a7168205f63a602a75.tar.gz
Ampton: Modify LED behavior to follow Coral
BUG=b:119842039 BRANCH=none TEST=check the led behavior Change-Id: Ieb684f7a3d38e3b36aab9bcf27cbc823b5a7df82 Signed-off-by: James_Chao <james_chao@asus.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1345791 Commit-Ready: James Chao <james_chao@asus.corp-partner.google.com> Tested-by: James Chao <james_chao@asus.corp-partner.google.com> Reviewed-by: James Chao <james_chao@asus.corp-partner.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
-rw-r--r--board/ampton/led.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/board/ampton/led.c b/board/ampton/led.c
index 93e9a1c0ac..8e5a812e1c 100644
--- a/board/ampton/led.c
+++ b/board/ampton/led.c
@@ -15,21 +15,21 @@
const int led_charge_lvl_1 = 0;
-const int led_charge_lvl_2 = 100;
+const int led_charge_lvl_2 = 94;
/* Ampton: Note there is only LED for charge / power */
struct led_descriptor led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = {
- [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_WHITE, 2 * LED_ONE_SEC},
- {EC_LED_COLOR_AMBER, 2 * LED_ONE_SEC} },
+ [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} },
[STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} },
- [STATE_CHARGING_FULL_CHARGE] = {{EC_LED_COLOR_WHITE, LED_INDEFINITE} },
- [STATE_DISCHARGE_S0] = {{EC_LED_COLOR_WHITE, LED_INDEFINITE} },
- [STATE_DISCHARGE_S3] = {{EC_LED_COLOR_AMBER, 4 * LED_ONE_SEC},
- {LED_OFF, 1 * LED_ONE_SEC} },
+ [STATE_CHARGING_FULL_CHARGE] = {{EC_LED_COLOR_WHITE, LED_INDEFINITE} },
+ [STATE_DISCHARGE_S0] = {{EC_LED_COLOR_WHITE, LED_INDEFINITE} },
+ [STATE_DISCHARGE_S3] = {{EC_LED_COLOR_AMBER, 1 * LED_ONE_SEC},
+ {LED_OFF, 3 * LED_ONE_SEC} },
[STATE_DISCHARGE_S5] = {{LED_OFF, LED_INDEFINITE} },
- [STATE_BATTERY_ERROR] = {{EC_LED_COLOR_WHITE, 2 * LED_ONE_SEC},
+ [STATE_BATTERY_ERROR] = {{EC_LED_COLOR_WHITE, 1 * LED_ONE_SEC},
+ {EC_LED_COLOR_AMBER, 1 * LED_ONE_SEC} },
+ [STATE_FACTORY_TEST] = {{EC_LED_COLOR_WHITE, 2 * LED_ONE_SEC},
{EC_LED_COLOR_AMBER, 2 * LED_ONE_SEC} },
- [STATE_FACTORY_TEST] = {{EC_LED_COLOR_WHITE, LED_INDEFINITE} },
};
BUILD_ASSERT(ARRAY_SIZE(led_bat_state_table) == LED_NUM_STATES);