summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2013-09-16 14:22:57 -0700
committerIsaac Christensen <isaac.christensen@se-eng.com>2014-08-08 18:11:52 +0200
commit3bb40b93f857256c8eafe9529de0e572522f71f0 (patch)
tree99f53593ffaabe1665c2789b75aec149ec4e78c9 /src
parent5b10fc5242191428ecec8b7c5b9068100d95f889 (diff)
chromeec: Implement full battery workaround at 6%
Currently the workaround for indicating a "full" battery kicks in at 3%, but this turns out to be too high for some devices. So move the workaround start point to 6% from full, or 94%. Change-Id: Ib4305df3a68e89f3a10a096d0e89d8105ea9037b Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/169549 Reviewed-by: Aaron Durbin <adurbin@chromium.org> (cherry picked from commit 982dc496a0553c90dee56fda6411b7c21a5d7da9) Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com> Reviewed-on: http://review.coreboot.org/6521 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index 341911c372..2ef1199b52 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -210,8 +210,8 @@ Device (BAT0)
// https://bugzilla.kernel.org/show_bug.cgi?id=12632
Store (BTDF, Local2)
- // See if within ~3% of full
- ShiftRight (Local2, 5, Local3)
+ // See if within ~6% of full
+ ShiftRight (Local2, 4, Local3)
If (LAnd (LGreater (Local1, Subtract (Local2, Local3)),
LLess (Local1, Add (Local2, Local3))))
{