summaryrefslogtreecommitdiff
path: root/src/ec/acpi/ec.h
diff options
context:
space:
mode:
authorBill XIE <persmule@gmail.com>2017-10-26 11:45:49 +0800
committerPatrick Georgi <pgeorgi@google.com>2017-11-07 12:26:42 +0000
commiteb4ded6925d147478fb75a4afcfb6534a2faaa5a (patch)
tree65b7acfd596c2e8e40d0e901739dc753c27ce700 /src/ec/acpi/ec.h
parentc467334620cc51daa9b976a241e43a6cafbe54a8 (diff)
downloadcoreboot-eb4ded6925d147478fb75a4afcfb6534a2faaa5a.tar.xz
ec/acpi: add mechanisms to clear EC output queue
EC's output could be considered as a queue, and sometimes (observed on Thinkpad T400s during cold boot) a few (only one observed) garbage bytes may detained in such queue after power up. Those garbage bytes should be checked and discarded first before real interactions, otherwise they may disrupt the interaction during EC's enablement, causing a locked rfkill. Change-Id: Iee031306c02f5211a4512c6b4ec90f7f0db196ae Signed-off-by: Bill XIE <persmule@gmail.com> Reviewed-on: https://review.coreboot.org/22180 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/ec/acpi/ec.h')
-rw-r--r--src/ec/acpi/ec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ec/acpi/ec.h b/src/ec/acpi/ec.h
index d9487e9015..48982d315e 100644
--- a/src/ec/acpi/ec.h
+++ b/src/ec/acpi/ec.h
@@ -40,6 +40,7 @@ int send_ec_command(u8 command);
int send_ec_data(u8 data);
int send_ec_data_nowait(u8 data);
u8 recv_ec_data(void);
+void ec_clear_out_queue(void);
u8 ec_status(void);
u8 ec_query(void);
u8 ec_read(u8 addr);