summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libc/console.c
diff options
context:
space:
mode:
authorJordan Crouse <jordan.crouse@amd.com>2008-04-25 23:09:39 +0000
committerJordan Crouse <jordan.crouse@amd.com>2008-04-25 23:09:39 +0000
commit63f181f97c0b89f5fe80f96df7b6288a59f5ad42 (patch)
tree94b8ac341edc88512413adf32922469156c7b268 /payloads/libpayload/libc/console.c
parent24a040475918ad2977a52677f59b10f7ce085afc (diff)
downloadcoreboot-63f181f97c0b89f5fe80f96df7b6288a59f5ad42.tar.xz
libpayload: Enable keyboard translation so that we can use scancode set 1
The qemu keyboard controller defaults to using scancode set 2, we use set 1. Turn on the translate mode in the keyboard controller to force the issue. Signed-off-by: Jordan Crouse <jordan.crouse@amd.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3270 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/libc/console.c')
-rw-r--r--payloads/libpayload/libc/console.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/console.c b/payloads/libpayload/libc/console.c
index b0bfe241c0..292cac9ca3 100644
--- a/payloads/libpayload/libc/console.c
+++ b/payloads/libpayload/libc/console.c
@@ -37,6 +37,9 @@ void console_init(void)
#ifdef CONFIG_SERIAL_CONSOLE
serial_init();
#endif
+#ifdef CONFIG_PC_KEYBOARD
+ keyboard_init();
+#endif
}
static void device_putchar(unsigned char c)