summaryrefslogtreecommitdiff
path: root/src/ec/acpi/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/acpi/ec.c')
-rw-r--r--src/ec/acpi/ec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ec/acpi/ec.c b/src/ec/acpi/ec.c
index 1d4ffb8258..2680aa34e4 100644
--- a/src/ec/acpi/ec.c
+++ b/src/ec/acpi/ec.c
@@ -116,6 +116,12 @@ int ec_write(u8 addr, u8 data)
return send_ec_data(data);
}
+u8 ec_query(void)
+{
+ send_ec_command(0x84);
+ return recv_ec_data();
+}
+
void ec_set_bit(u8 addr, u8 bit)
{
ec_write(addr, ec_read(addr) | (1 << bit));