coreboot/src/ec
Jamie Ryu 19080a71c8 ec/google/chromeec: Add is_battery_present_and_above_critical_threshold
This adds is_battery_present_and_above_critical_threshold to check the
battery is present and the battery level is above critical level.

BUG=b:296952944
TEST=Build rex and check is_battery_present_and_above_critical_threshold
returns the correct battery status.

Change-Id: Ib38be55bc42559bab4f12d5e8580ddc3e1a6acc1
Signed-off-by: Jamie Ryu <jamie.m.ryu@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78321
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
2023-10-16 03:41:29 +00:00
..
51nb/npce985la0dx
acpi clean-up: Remove the no more necessary ENV_HAS_DATA_SECTION flag 2023-09-18 13:18:23 +00:00
apple/acpi tree: Replace ShiftLeft(a,b) with ASL 2.0 syntax 2022-12-23 08:30:39 +00:00
clevo/it5570e ec/clevo/it5570e/acpi: Replace Index(a, b) with ASL 2.0 syntax 2022-12-12 21:43:31 +00:00
compal/ene932 {superio,ec}/acpi: Replace constant "Zero" with actual number 2022-12-27 09:06:29 +00:00
dell/mec5035 ec/dell: Add support for the SMSC MEC5035 2023-02-08 19:21:59 +00:00
google ec/google/chromeec: Add is_battery_present_and_above_critical_threshold 2023-10-16 03:41:29 +00:00
hp/kbc1126 ec/hp/kbc1126: Use packed over attrbute__((packed)) 2023-09-17 13:20:56 +00:00
intel clean-up: Remove the no more necessary ENV_HAS_DATA_SECTION flag 2023-09-18 13:18:23 +00:00
kontron tree: Replace And(a,b) with ASL 2.0 syntax 2022-12-23 10:18:55 +00:00
lenovo ec/lenovo/h8/h8.c: Use sizeof() 2023-09-07 17:34:22 +00:00
purism ec/purism,system76: Provide probe for fixed Librem-EC jack detect 2023-05-26 14:57:27 +00:00
quanta ec/quanta/ene_kb3940q/acpi: Fix PS2K under Windows 2023-05-13 18:35:44 +00:00
roda/it8518 treewide: Remove useless "_STA: Status" comment 2023-02-19 11:20:37 +00:00
smsc/mec1308 {superio,ec}/acpi: Replace constant "Zero" with actual number 2022-12-27 09:06:29 +00:00
starlabs/merlin ec/starlabs/merlin: Update the Q Events 2023-10-04 09:35:53 +00:00
system76/ec {ec,mb}/system76: Replace color keyboard logic 2023-07-18 15:03:16 +00:00
ec.h