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/

Change-Id: Iaa8dfac0301ef19a2d76a0975d025b00e7f3807b
Signed-off-by: Nicola Corna <nicola@corna.info>
Reviewed-on: https://review.coreboot.org/18766
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Nicola Corna 2017-03-10 21:39:52 +01:00 committed by Martin Roth
parent 16719ad143
commit 85e81dfa6d
1 changed files with 10 additions and 1 deletions

View File

@ -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);