[coreboot] Patch set updated for coreboot: 280b75b coreinfo: changes to get the USB keyboard working

Dave Frodin (dave.frodin@se-eng.com) gerrit at coreboot.org
Fri Dec 7 22:36:11 CET 2012


Dave Frodin (dave.frodin at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1983

-gerrit

commit 280b75b35da579999a1cfa10e9883d3675fc641b
Author: Dave Frodin <dave.frodin at se-eng.com>
Date:   Wed Dec 5 17:22:47 2012 -0700

    coreinfo: changes to get the USB keyboard working
    
    A call to usb_initialize() was needed. Several curses flags
    also need to be set to get the behavior we want.
    
    Change-Id: I495b42055a54603e4efb92b2845051434d88432d
    Signed-off-by: Dave Frodin <dave.frodin at se-eng.com>
---
 payloads/coreinfo/coreinfo.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c
index 846cf77..62224e7 100644
--- a/payloads/coreinfo/coreinfo.c
+++ b/payloads/coreinfo/coreinfo.c
@@ -271,6 +271,13 @@ int main(void)
 {
 	int i, j;
 
+#if defined(CONFIG_USB)
+	usb_initialize();
+	/* the 1st call to havekey prints out info */
+	/* lets do one here before the screen init */
+	havekey();
+#endif
+
 	initscr();
 
 	init_pair(1, COLOR_WHITE, COLOR_GREEN);
@@ -291,6 +298,9 @@ int main(void)
 			categories[i].modules[j]->init();
 	}
 
+	noecho();
+	keypad(stdscr, TRUE); /* there may be a Fn key */
+
 	loop();
 
 	return 0;




More information about the coreboot mailing list