UPSTREAM: tint: Add USB support
Enable the USB during the initialization of tint. Without it USB
keyboards don't work, which makes this payload pointless on
systems where a PS/2 keyboard port isn't available.
Based on I98f0ccdb19d6b195572941cf87ce3221f57db7c5 (tint and
nvramcui: enable USB, update tint to 0.04+nmu1 with changes) [1]
[1] https://review.coreboot.org/17507/
BUG=none
BRANCH=none
TEST=none
Change-Id: Ie04af809b6f6c6f97554eced7d8477d052ec6f60
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 85e81dfa6d
Original-Change-Id: Iaa8dfac0301ef19a2d76a0975d025b00e7f3807b
Original-Signed-off-by: Nicola Corna <nicola@corna.info>
Original-Reviewed-on: https://review.coreboot.org/18766
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://chromium-review.googlesource.com/457364
This commit is contained in:
parent
9905ad23e1
commit
68c9fc0b9d
1 changed files with 10 additions and 1 deletions
11
payloads/external/tint/libpayload_tint.patch
vendored
11
payloads/external/tint/libpayload_tint.patch
vendored
|
|
@ -823,7 +823,16 @@ diff -rupN tint-0.03b/tint.c tint/tint.c
|
|||
}
|
||||
|
||||
/***************************************************************************/
|
||||
@@ -663,8 +680,15 @@ int main (int argc,char *argv[])
|
||||
@@ -561,6 +578,8 @@ int main (int argc,char *argv[])
|
||||
int ch;
|
||||
engine_t engine;
|
||||
/* Initialize */
|
||||
+ if (IS_ENABLED(CONFIG_LP_USB))
|
||||
+ usb_initialize();
|
||||
rand_init (); /* must be called before engine_init () */
|
||||
engine_init (&engine,score_function); /* must be called before using engine.curshape */
|
||||
finished = shownext = FALSE;
|
||||
@@ -663,8 +682,15 @@
|
||||
if (ch != 'q')
|
||||
{
|
||||
showplayerstats (&engine);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue