coreboot/payloads/libpayload/drivers
Furquan Shaikh bf9d8daf91 UPSTREAM: 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: I473423c4d5f701dbe16e490c49e910816c9af6a0
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 342f5f836c
Original-Change-Id: I46f1b6715ccf6418f5b2c741bf90db2ece26a60d
Original-Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/19345
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/482972
2017-04-21 06:03:50 -07:00
..
serial UPSTREAM: libpayload/libc/console: Flush input driver buffer on init 2017-04-21 06:03:50 -07:00
storage UPSTREAM: libpayload: Add Cougar Point PCH's AHCI to whitelist 2016-12-08 22:46:50 -08:00
timer various cleanups from upstream 2017-02-06 05:03:19 -08:00
udc UPSTREAM: Remove extra newlines from the end of all coreboot files. 2016-08-04 23:36:56 -07:00
usb UPSTREAM: libpayload: usbhub: Force enumeration of all connected ports on init 2017-03-16 11:25:32 -07:00
video UPSTREAM: libpayload: cbgfx: Show square images on portrait displays 2017-04-17 22:50:24 -07:00
cbmem_console.c libpayload: console: Allow output drivers to print whole strings at once 2014-12-22 21:44:37 +01:00
hid.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
keyboard.c UPSTREAM: libpayload/libc/console: Flush input driver buffer on init 2017-04-21 06:03:50 -07:00
Makefile.inc UPSTREAM: libpayload: mvmap2315: Introduce timer driver 2016-10-11 14:32:38 -07:00
nvram.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
options.c libpayload/options: Fix out of array read. 2014-01-19 11:51:23 +01:00
pci.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
speaker.c Fix libpayload speaker driver 2011-10-27 10:49:41 +02:00