summaryrefslogtreecommitdiff
path: root/util/ectool/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/ectool/ec.c')
-rw-r--r--util/ectool/ec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/ectool/ec.c b/util/ectool/ec.c
index 0f5b891d54..323a43fe73 100644
--- a/util/ectool/ec.c
+++ b/util/ectool/ec.c
@@ -147,3 +147,9 @@ uint8_t ec_idx_read(uint16_t addr)
return inb(lpc_idx + 3);
}
+
+uint8_t ec_query(void)
+{
+ send_ec_command(QR_EC);
+ return recv_ec_data();
+}