diff options
author | Mathew King <mathewk@chromium.org> | 2020-06-02 12:27:06 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-06-06 09:43:54 +0000 |
commit | 071182ade30da4bdba6da03ce79abf8df91ee480 (patch) | |
tree | b62cd23f6754e432f0d4e889c2495b1f4bec193c /src/soc | |
parent | 379aab47f9bf4a804de168b61d3b2a1f6f789a91 (diff) |
ec/google/wilco: Always use current value of battery status bit
According to the Wilco EC spec the BTSC bit of PWSR is always cleared
when PWSR is read so that battery status change events are only
triggered one time. Testing of the Wilco EC has verified this behavior.
This changes the way in which the battery status change bit is used from
checking the bit state against the previous value to always issuing a
battery event when the BTSC bit is set. The other bits in PWSR indicate
state directly and do not behave like the BTSC bit.
BUG=b:157113138
TEST=Deploy on Drallion and verify that battery events are generated
BRANCH=drallion, sarien
Signed-off-by: Mathew King <mathewk@chromium.org>
Change-Id: I8fbf2ee1158ddd790b04a20b1eb27a6cce4f5c81
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42017
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/soc')
0 files changed, 0 insertions, 0 deletions