diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2014-08-18 23:54:54 +0200 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2014-08-19 20:28:18 +0200 |
commit | c5e040bd238af5a5ded58fc715e464bbd85b275a (patch) | |
tree | 99b4b6658303055bfeaa2234c2a8d523c76e07df /src/mainboard/lenovo | |
parent | f319ae40d702b3012429d09a05633eadd18ea4c2 (diff) | |
download | coreboot-c5e040bd238af5a5ded58fc715e464bbd85b275a.tar.xz |
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>
Diffstat (limited to 'src/mainboard/lenovo')
-rw-r--r-- | src/mainboard/lenovo/x201/dock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/lenovo/x201/dock.c b/src/mainboard/lenovo/x201/dock.c index 087cf21220..3dba5e180f 100644 --- a/src/mainboard/lenovo/x201/dock.c +++ b/src/mainboard/lenovo/x201/dock.c @@ -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; } |