diff options
author | Sven Schnelle <svens@stackframe.org> | 2011-07-11 18:36:16 +0200 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2011-08-18 20:50:55 +0200 |
commit | 8d0b86c9abc61414b06a60b28868739e077ffa87 (patch) | |
tree | cad2193cfc2a4a81fbf39a20cb5a45557e6a81e0 /src/mainboard/lenovo/x60/mainboard.c | |
parent | d819853f857f68dfd3661607d77ae5ccc7461e3b (diff) | |
download | coreboot-8d0b86c9abc61414b06a60b28868739e077ffa87.tar.xz |
X60: use EC events 0x50/0x58 instead of GPIO GPE for Docking/Undocking
Change-Id: I674e5166f5fb7ba299e6f1231f30434a5bf731c5
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/161
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/mainboard/lenovo/x60/mainboard.c')
-rw-r--r-- | src/mainboard/lenovo/x60/mainboard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x60/mainboard.c b/src/mainboard/lenovo/x60/mainboard.c index 8cd68bc88e..bf3d8d3c66 100644 --- a/src/mainboard/lenovo/x60/mainboard.c +++ b/src/mainboard/lenovo/x60/mainboard.c @@ -45,6 +45,12 @@ static void mainboard_enable(device_t dev) /* enable Audio */ h8_set_audio_mute(0); + ec_clr_bit(0x03, 2); + + if (inb(0x164c) & 0x08) { + ec_set_bit(0x03, 2); + ec_write(0x0c, 0x88); + } /* If we're resuming from suspend, blink suspend LED */ dev0 = dev_find_slot(0, PCI_DEVFN(0,0)); if (dev0 && pci_read_config32(dev0, SKPAD) == SKPAD_ACPI_S3_MAGIC) |