summaryrefslogtreecommitdiff
path: root/board/chell/led.c
Commit message (Collapse)AuthorAgeFilesLines
* chipset: Introduce CHIPSET_STATE_ANY_SUSPENDFurquan Shaikh2017-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | There are two different types of suspend states that are supported on x86 platforms -- S3 and S0ix. When AP enters S3, the chipset state is identified as CHIPSET_STATE_SUSPEND. On the other hand, when AP enters S0ix, the chipset state is identified as CHIPSET_STATE_STANDBY. There are several components within the EC e.g. charger state machine, usb pd task, motion sense task that take actions based on the chipset suspend state (and checked only for CHIPSET_STATE_SUSPEND until now). In order to ensure that different EC components do not have to worry about checking for all the different types of suspend states that are supported, introduce a new combination CHIPSET_STATE_ANY_SUSPEND which is a combination of CHIPSET_STATE_SUSPEND(S3) and CHIPSET_STATE_STANDBY(S0ix). BUG=b:69690699 BRANCH=None TEST=make -j buildall. Ruben verified that with this change, EC power consumption in S0ix drops from 7.85mW to 6.59mW on Soraka. Change-Id: I599a0ea2fe2f39132764a6068fa77c3aea02affa Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/786919 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
* chell: Indicate when charging in suspendDuncan Laurie2016-03-151-2/+7
| | | | | | | | | | | | | | | | | | | | Currently when in suspend the LED blinks white no matter what the state of the battery or charging is. This is very confusing for users who expect to be able to plug in a charger with the system in suspend and see that it starts to charge. Past platforms from this OEM have had two LEDs so this has not been an issue. BUG=chrome-os-partner:49151 BRANCH=glados TEST=put chell in suspend, plug in charger to see amber LED and then remove the charger and see that it blinks white again. Change-Id: I60e849d7b8b717fb568d7d5d64046621c1c34157 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/332625 Reviewed-by: Shawn N <shawnn@chromium.org>
* chell: Blink LED in S0iXDuncan Laurie2016-02-081-1/+1
| | | | | | | | | | | | | | | Blink the LED in S3 as well as S0iX states so there is no user visible difference in their behavior. BUG=chrome-os-partner:49274 BRANCH=glados TEST=Enter S0iX on chell (need SKU4) and verify LED blinks. Also verify that the LED still blinks in S3. Change-Id: I91b123de17787159f4e7d6aca2e86b80885b8f4e Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/326740 Reviewed-by: Shawn N <shawnn@chromium.org>
* Chell: modify led setting for OEM specBruce2016-01-051-8/+1
| | | | | | | | | | | | | | | Modify the led blink white at battery capacity less than 12%. BUG=None BRANCH=None TEST=check the led blink white at battery capacity less than 12% Change-Id: I3494ed7d207e769fe081b4442fd298b4e481e0a7 Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/319729 Commit-Ready: Bruce Wan <Bruce.Wan@quantatw.com> Tested-by: Bruce Wan <Bruce.Wan@quantatw.com> Reviewed-by: Shawn N <shawnn@chromium.org>
* Chell: modify led setting for led test command.Bruce2015-12-161-2/+2
| | | | | | | | | | | | | BUG=None BRANCH=None TEST=the test command can control led. Change-Id: Iaae49f35953448e2472196ba9b6411fe8d9487b4 Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/318165 Commit-Ready: Bruce Wan <Bruce.Wan@quantatw.com> Tested-by: Bruce Wan <Bruce.Wan@quantatw.com> Reviewed-by: Shawn N <shawnn@chromium.org>
* Chell: support LED behaviorBruce2015-11-291-68/+50
| | | | | | | | | | | | | | | Add firmware to support LED behavior for following OEM spec. BUG=None BRANCH=None TEST=check led behavior follow the spec Change-Id: Ib4250a47a153fbe7de0e1cd4a5869fd3efbcfd1d Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/313898 Commit-Ready: Bruce Wan <Bruce.Wan@quantatw.com> Tested-by: Bruce Wan <Bruce.Wan@quantatw.com> Reviewed-by: Shawn N <shawnn@chromium.org>
* chell: Add EC/PD configuration for chell boardDuncan Laurie2015-10-121-0/+165
Add new EC board for chell proto: - no motion sensors or tablet mode - no independent volume buttons - no ALS - 2x PS8740 USB MUX - apply PMIC_LDO_EN behavior by default - leave SLP_S0 workaround in place until HW is updated - misc GPIO changes - update battery info with basic 3S config from blaze - remove custom battery charger profile The PD board is a symlink to glados as it appears to be the same. BUG=chrome-os-partner:46289 BRANCH=none TEST=make -j BOARD=chell ; make -j BOARD=chell_pd Change-Id: I1084d663b06eeb55f035b10eb776a2e30e0f7074 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/304398 Reviewed-by: Aaron Durbin <adurbin@chromium.org>