summaryrefslogtreecommitdiff
path: root/payloads/coreinfo
diff options
context:
space:
mode:
authorDave Frodin <dave.frodin@se-eng.com>2012-12-05 17:22:47 -0700
committerMarc Jones <marcj303@gmail.com>2012-12-12 22:35:19 +0100
commit15a2c8f82769c67684d0a6eac05be48487599dfc (patch)
tree010f6d8c4241eacd821fe67716a32ec70c09acc9 /payloads/coreinfo
parente899e518d88f2f48927fba9006d02ea9e1e5a797 (diff)
downloadcoreboot-15a2c8f82769c67684d0a6eac05be48487599dfc.tar.xz
coreinfo: changes to get the USB keyboard working
A call to usb_initialize() was needed. Also needed to set several curses flags. One to prevent keystrokes echoing to the display, and one to allow extended keystrokes (like the KEY_F(n)) to be seen when calling getch(); Change-Id: I495b42055a54603e4efb92b2845051434d88432d Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/1983 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'payloads/coreinfo')
-rw-r--r--payloads/coreinfo/coreinfo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c
index 7e8b201fb6..97538a07e4 100644
--- a/payloads/coreinfo/coreinfo.c
+++ b/payloads/coreinfo/coreinfo.c
@@ -271,6 +271,10 @@ int main(void)
{
int i, j;
+#if defined(CONFIG_USB)
+ usb_initialize();
+#endif
+
initscr();
start_color();
@@ -292,6 +296,9 @@ int main(void)
categories[i].modules[j]->init();
}
+ noecho(); /* don't let curses echo keyboard chars */
+ keypad(stdscr, TRUE); /* allow KEY_F(n) keys to be seen */
+
loop();
return 0;