diff options
author | Sven Schnelle <svens@stackframe.org> | 2011-04-01 07:28:56 +0000 |
---|---|---|
committer | Sven Schnelle <svens@stackframe.org> | 2011-04-01 07:28:56 +0000 |
commit | fea6bd16909a29854539c431497ccc460f3cdf7a (patch) | |
tree | 6cb1ecc72deb3ec1edfaff4f98dcb4dc45ba220e /src/mainboard/lenovo/x60/acpi/gpe.asl | |
parent | 1aba09678913404826d7581f329bfa75d26cbdca (diff) | |
download | coreboot-fea6bd16909a29854539c431497ccc460f3cdf7a.tar.xz |
X60: add dock code for Ultrabase X6
Move the old docking code from romstage.c to dock.c, and use that code
both in romstage and SMM code.
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6473 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/lenovo/x60/acpi/gpe.asl')
-rw-r--r-- | src/mainboard/lenovo/x60/acpi/gpe.asl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x60/acpi/gpe.asl b/src/mainboard/lenovo/x60/acpi/gpe.asl index 1c5d1bdfd8..64e8e31e66 100644 --- a/src/mainboard/lenovo/x60/acpi/gpe.asl +++ b/src/mainboard/lenovo/x60/acpi/gpe.asl @@ -1,3 +1,4 @@ +#include "smi.h" Scope (\_GPE) { Method(_L18, 0, NotSerialized) @@ -5,4 +6,16 @@ Scope (\_GPE) /* Read EC register to clear wake status */ Store(\_SB.PCI0.LPCB.EC.WAKE, Local0) } + + /* SLICE_ON_3M GPE (Dock status) */ + Method(_L1D, 0, NotSerialized) + { + if (GP13) { + Or(GIV1, 0x20, GIV1) + Notify(\_SB.PCI0.LPCB.EC.DOCK, 3) + } else { + And(GIV1, 0xdf, GIV1) + Notify(\_SB.PCI0.LPCB.EC.DOCK, 0) + } + } } |