Vladimir Serbinenko (phcoder@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6706
-gerrit
commit e00676b1f63cf40449ba10b3040fdab329780698 Author: Vladimir Serbinenko phcoder@gmail.com Date: Mon Aug 18 23:54:54 2014 +0200
lenovo/x201: Fix dock recognition
Change-Id: I8b210786f660e2b2bae0d9ddd594386fd107cbe4 Signed-off-by: Vladimir Serbinenko phcoder@gmail.com --- src/mainboard/lenovo/x201/dock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mainboard/lenovo/x201/dock.c b/src/mainboard/lenovo/x201/dock.c index fbcf99e..fb2c797 100644 --- a/src/mainboard/lenovo/x201/dock.c +++ b/src/mainboard/lenovo/x201/dock.c @@ -59,5 +59,5 @@ int dock_present(void) u16 gpiobase = pci_read_config16(PCH_LPC_DEV, GPIO_BASE) & 0xfffc; u8 st = inb(gpiobase + 0x0c);
- return !((st >> 3) & 1); + return ((st >> 3) & 7) != 7; }