summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/x60/dock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/lenovo/x60/dock.c')
-rw-r--r--src/mainboard/lenovo/x60/dock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x60/dock.c b/src/mainboard/lenovo/x60/dock.c
index b64d864f49..49e2d21b1f 100644
--- a/src/mainboard/lenovo/x60/dock.c
+++ b/src/mainboard/lenovo/x60/dock.c
@@ -247,3 +247,8 @@ int dock_present(void)
{
return !((inb(DEFAULT_GPIOBASE + 0x0c) >> 13) & 1);
}
+
+int dock_ultrabay_device_present(void)
+{
+ return inb(0x1621) & 0x02 ? 0 : 1;
+}