mb/lenovo/t410: Convert to ASL 2.0 syntax
Change-Id: I5859c64b0ccd1dfdce040b2c3bbdd9192617ffbe Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46193 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
parent
9759dc334e
commit
cb108eef21
|
@ -12,18 +12,18 @@ Scope (\_SB)
|
||||||
{
|
{
|
||||||
if (Arg0) {
|
if (Arg0) {
|
||||||
/* connect dock */
|
/* connect dock */
|
||||||
Store (1, \GP28)
|
\GP28 = 1
|
||||||
Store (1, \_SB.PCI0.LPCB.EC.DKR1)
|
\_SB.PCI0.LPCB.EC.DKR1 = 1
|
||||||
Store (1, \_SB.PCI0.LPCB.EC.DKR2)
|
\_SB.PCI0.LPCB.EC.DKR2 = 1
|
||||||
Store (1, \_SB.PCI0.LPCB.EC.DKR3)
|
\_SB.PCI0.LPCB.EC.DKR3 = 1
|
||||||
} else {
|
} else {
|
||||||
/* disconnect dock */
|
/* disconnect dock */
|
||||||
Store (0, \GP28)
|
\GP28 = 0
|
||||||
Store (0, \_SB.PCI0.LPCB.EC.DKR1)
|
\_SB.PCI0.LPCB.EC.DKR1 = 0
|
||||||
Store (0, \_SB.PCI0.LPCB.EC.DKR2)
|
\_SB.PCI0.LPCB.EC.DKR2 = 0
|
||||||
Store (0, \_SB.PCI0.LPCB.EC.DKR3)
|
\_SB.PCI0.LPCB.EC.DKR3 = 0
|
||||||
}
|
}
|
||||||
Xor(Arg0, \_SB.PCI0.LPCB.EC.DKR1, Local0)
|
Local0 = Arg0 ^ \_SB.PCI0.LPCB.EC.DKR1
|
||||||
Return (Local0)
|
Return (Local0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,8 @@ Scope (\_GPE)
|
||||||
Method(_L18, 0, NotSerialized)
|
Method(_L18, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
/* Read EC register to clear wake status */
|
/* Read EC register to clear wake status */
|
||||||
Store(\_SB.PCI0.LPCB.EC.WAKE, Local0)
|
Local0 = \_SB.PCI0.LPCB.EC.WAKE
|
||||||
/* So that we don't get a warning that Local0 is unused. */
|
/* So that we don't get a warning that Local0 is unused. */
|
||||||
Increment (Local0)
|
Local0++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue