Small patch that adds an error message in case the keyboard selftest fails.

Signed-off-by: Philipp Degler <pdegler@rumms.uni-mannheim.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2694 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Philipp Degler 2007-05-24 13:55:45 +00:00 committed by Uwe Hermann
parent 1bccabc16c
commit 5ecfa2963d
1 changed files with 3 additions and 1 deletions

View File

@ -43,8 +43,10 @@ static void pc_keyboard_init(struct pc_keyboard *keyboard)
} }
/* read self-test result, 0x55 should be returned form 0x60 */ /* read self-test result, 0x55 should be returned form 0x60 */
if ((regval = inb(0x60) != 0x55)) if ((regval = inb(0x60) != 0x55)) {
printk_err("Keyboard selftest failed\n");
return; return;
}
/* enable keyboard interface */ /* enable keyboard interface */
outb(0x60, 0x64); outb(0x60, 0x64);