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/dock.c | |
parent | d819853f857f68dfd3661607d77ae5ccc7461e3b (diff) |
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/dock.c')
-rw-r--r-- | src/mainboard/lenovo/x60/dock.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mainboard/lenovo/x60/dock.c b/src/mainboard/lenovo/x60/dock.c index 49e2d21b1f..eed00a1a26 100644 --- a/src/mainboard/lenovo/x60/dock.c +++ b/src/mainboard/lenovo/x60/dock.c @@ -132,10 +132,12 @@ int dock_connect(void) /* Assert D_PLTRST# */ outb(0xfe, 0x1680); - udelay(1000); + udelay(100000); /* Deassert D_PLTRST# */ outb(0xff, 0x1680); + udelay(1000); + /* startup 14.318MHz Clock */ dock_write_register(0x29, 0x06); /* wait until clock is settled */ @@ -232,11 +234,17 @@ int dock_connect(void) /* Enable USB and Ultrabay power */ outb(0x03, 0x1628); + + dock_write_register(0x07, 0x03); + dock_write_register(0x30, 0x01); + console_init(); return 0; } void dock_disconnect(void) { + /* disable Ultrabay and USB Power */ + outb(0x00, 0x1628); /* disconnect LPC bus */ outb(0x00, 0x164c); /* Assert PLTRST and DLPCPD */ |