aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Van Patten <timvp@google.com>2022-08-16 11:49:27 -0600
committerRaul Rangel <rrangel@chromium.org>2022-08-17 21:49:41 +0000
commitd4f135d31bd2f4e4f24555e632ad0e8e8b06082b (patch)
treea0104b1055f1ca87f4cc699595dc41696e981764 /src
parentc826ba419f06f9df9cded8e60633253ddc7b60ff (diff)
ec/google/chromec: Add BFIV, BFCT
The flag EC_BATT_FLAG_CUT_OFF was added with the CL: 3704470: battery: Set battery cutoff flag https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3704470 This flag is set in the ACPI memory mapped area when the command `ectool batterycutoff` is issued so ACPI code can respond appriopriately. This CL adds the flags to coreboot ACPI. BRANCH=none BUG=b:217911928 TEST=Boot nipperkin with low & no battery TEST=Boot skyrim with low & no battery Signed-off-by: Tim Van Patten <timvp@google.com> Change-Id: I4e63ff4fc2d6b0ecf767a6bffd81f823c74c15bb Reviewed-on: https://review.coreboot.org/c/coreboot/+/66803 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/chromeec/acpi/emem.asl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/emem.asl b/src/ec/google/chromeec/acpi/emem.asl
index 613d027bf0..3eec35eadf 100644
--- a/src/ec/google/chromeec/acpi/emem.asl
+++ b/src/ec/google/chromeec/acpi/emem.asl
@@ -33,6 +33,8 @@ BTEX, 1, // Battery Present
BFDC, 1, // Battery Discharging
BFCG, 1, // Battery Charging
BFCR, 1, // Battery Level Critical
+BFIV, 1, // Invalid Battery Data
+BFCT, 1, // Battery cutoff
Offset (0x4d),
BTCN, 8, // Battery Count
BTIX, 8, // Battery index