summaryrefslogtreecommitdiffstats
path: root/src/include/pc80
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-11-24 14:12:01 -0600
committerMartin Roth <martinroth@google.com>2016-02-01 22:10:46 +0100
commit448e386309c20ed1d22360e06192b632af0af720 (patch)
tree61f1b0a1c8ccb65a5efda1e6571b9edd7051bc98 /src/include/pc80
parentc2ed40b48ae3e9874213d4e70e1ac3c5fbbba8fc (diff)
downloadcoreboot-448e386309c20ed1d22360e06192b632af0af720.tar.gz
coreboot-448e386309c20ed1d22360e06192b632af0af720.tar.bz2
coreboot-448e386309c20ed1d22360e06192b632af0af720.zip
drivers/pc80: Add PS/2 mouse presence detect
On certain Winbond SuperIO devices, when a PS/2 mouse is not present on the auxiliary channel both channels will cease to function if the auxiliary channel is probed while the primary channel is active. Therefore, knowledge of mouse presence must be gathered by coreboot during early boot, and used to enable or disable the auxiliary PS/2 port before control is passed to the operating system. Add auxiliary channel PS/2 device presence detect, and update the Winbond W83667HG-A driver to flag the auxiliary channel as disabled if no device was detected. Change-Id: I76274493dacc9016ac6d0dff8548d1dc931c6266 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: https://review.coreboot.org/13165 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include/pc80')
-rw-r--r--src/include/pc80/keyboard.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/pc80/keyboard.h b/src/include/pc80/keyboard.h
index 16cb9597994a..fa45826af314 100644
--- a/src/include/pc80/keyboard.h
+++ b/src/include/pc80/keyboard.h
@@ -1,7 +1,10 @@
#ifndef PC80_KEYBOARD_H
#define PC80_KEYBOARD_H
-void pc_keyboard_init(void);
+#define NO_AUX_DEVICE 0
+#define PROBE_AUX_DEVICE 1
+
+uint8_t pc_keyboard_init(uint8_t probe_aux);
void set_kbc_ps2_mode(void);
#endif /* PC80_KEYBOARD_H */