From 3bb40b93f857256c8eafe9529de0e572522f71f0 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 16 Sep 2013 14:22:57 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/169549 Reviewed-by: Aaron Durbin (cherry picked from commit 982dc496a0553c90dee56fda6411b7c21a5d7da9) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6521 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/ec/google/chromeec/acpi/battery.asl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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)))) { -- cgit v1.2.3