aboutsummaryrefslogtreecommitdiff
path: root/src/ec/lenovo
diff options
context:
space:
mode:
authorBill XIE <persmule@gmail.com>2017-10-26 11:55:34 +0800
committerPatrick Georgi <pgeorgi@google.com>2017-11-07 12:26:51 +0000
commit54f45c684c2daaef92cbe6c4672a7295d0469c56 (patch)
treed8d51339c8108aec188936adb928e307a1a4b5e3 /src/ec/lenovo
parenteb4ded6925d147478fb75a4afcfb6534a2faaa5a (diff)
ec/lenovo/h8: Clear EC output queue before enablement
Sometimes (observed on Thinkpad T400s during cold boot) a few (only one observed) garbage bytes may detained in the output queue of EC after power up, and they should be cleared otherwise later communications will be disrupted. Change-Id: Id1733f7350232d0b10ac0d1bc912b62e7fa4da75 Signed-off-by: Bill XIE <persmule@gmail.com> Reviewed-on: https://review.coreboot.org/22181 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maximilian Schander <coreboot@mimoja.de> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/ec/lenovo')
-rw-r--r--src/ec/lenovo/h8/h8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 882ac0271c..3442f68ff8 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -196,6 +196,7 @@ static void h8_enable(struct device *dev)
dev->ops = &h8_dev_ops;
+ ec_clear_out_queue();
h8_log_ec_version();
/* Always enable I/O range 0x1600-0x160f and thermal management */