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%. BUG=chrome-os-partner:21959 BRANCH=falco,peppy,wolf,leon TEST=emerge-falco chromeos-coreboot-falco 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>
This commit is contained in:
parent
3257f5feb7
commit
982dc496a0
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue