From d4f135d31bd2f4e4f24555e632ad0e8e8b06082b Mon Sep 17 00:00:00 2001 From: Tim Van Patten Date: Tue, 16 Aug 2022 11:49:27 -0600 Subject: 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 Change-Id: I4e63ff4fc2d6b0ecf767a6bffd81f823c74c15bb Reviewed-on: https://review.coreboot.org/c/coreboot/+/66803 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/ec/google/chromeec/acpi/emem.asl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ec/google/chromeec/acpi') 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 -- cgit v1.2.3