lenovo/x201: Fix dock recognition

Change-Id: I8b210786f660e2b2bae0d9ddd594386fd107cbe4
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6706
Tested-by: build bot (Jenkins)
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
Vladimir Serbinenko 2014-08-18 23:54:54 +02:00
parent f319ae40d7
commit c5e040bd23
1 changed files with 1 additions and 1 deletions

View File

@ -67,5 +67,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;
}