coreboot-kgpe-d16/payloads/libpayload/drivers/serial
Furquan Shaikh 342f5f836c libpayload/libc/console: Flush input driver buffer on init
When console input driver registers itself, perform flush of input
buffer to avoid interpreting any stale key presses before libpayload
is run.

keyboard.c: Remove the redundant buffer flush.
8250.c: Ensure that serial_hardware_is_present is set before call to
add input driver.

BUG=b:37273808
TEST=Verified that any key presses in serial console before payload is
up do not have any effect after the payload starts running.

Change-Id: I46f1b6715ccf6418f5b2c741bf90db2ece26a60d
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/19345
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2017-04-19 19:19:56 +02:00
..
8250.c libpayload/libc/console: Flush input driver buffer on init 2017-04-19 19:19:56 +02:00
bg4cd.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ipq40xx.c libpayload: ipq40xx: Introduce timer and uart driver 2016-05-09 08:53:24 +02:00
ipq806x.c libpayload: ipq808x: stale interrupt shall not be cleared unconditionally 2015-03-13 23:01:39 +01:00
s5p.c
serial.c libpayload: Split off generic serial API from 8250 driver 2016-04-16 01:08:23 +02:00