summaryrefslogtreecommitdiff
path: root/payloads/external
diff options
context:
space:
mode:
authorNicola Corna <nicola@corna.info>2017-03-10 21:39:52 +0100
committerMartin Roth <martinroth@google.com>2017-03-19 21:38:22 +0100
commit85e81dfa6dffde15670a8bd142ccac5ca27aa36d (patch)
tree68d58bfa67ce6d755cfbe1ea3f70e4ef6a6ac258 /payloads/external
parent16719ad143e823a3cdab8ebde3b599488d861331 (diff)
downloadcoreboot-85e81dfa6dffde15670a8bd142ccac5ca27aa36d.tar.xz
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>
Diffstat (limited to 'payloads/external')
-rw-r--r--payloads/external/tint/libpayload_tint.patch11
1 files changed, 10 insertions, 1 deletions
diff --git a/payloads/external/tint/libpayload_tint.patch b/payloads/external/tint/libpayload_tint.patch
index c261fc1ba6..b5592dd72c 100644
--- a/payloads/external/tint/libpayload_tint.patch
+++ b/payloads/external/tint/libpayload_tint.patch
@@ -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);