From 85e81dfa6dffde15670a8bd142ccac5ca27aa36d Mon Sep 17 00:00:00 2001 From: Nicola Corna <nicola@corna.info> Date: Fri, 10 Mar 2017 21:39:52 +0100 Subject: 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> --- payloads/external/tint/libpayload_tint.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'payloads') 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); -- cgit v1.2.3