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>
This commit is contained in:
parent
5b10fc5242
commit
3bb40b93f8
|
@ -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))))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue