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:
parent
1bccabc16c
commit
5ecfa2963d
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue