mb/lenovo/s230u: Convert to ASL 2.0 syntax

Generated 'build/dsdt.dsl' are identical.

Change-Id: I8843d418bd9c34a4f079444bc6ce8ecd4559e36d
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46191
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
This commit is contained in:
Elyes HAOUAS 2020-10-08 09:52:35 +02:00 committed by Michael Niewöhner
parent 67e3365eb0
commit c23ec645d3
2 changed files with 19 additions and 19 deletions

View File

@ -127,7 +127,7 @@ Device (EC0)
/* Switched to AC power */
Method (_Q26, 0, NotSerialized)
{
Store (One, PWRS)
PWRS = 1
Notify (^AC, 0x80)
Notify (^BAT0, 0x80)
\PNOT ()
@ -137,7 +137,7 @@ Device (EC0)
/* Switched to battery power */
Method (_Q27, 0, NotSerialized)
{
Store (Zero, PWRS)
PWRS = 0
Notify (^AC, 0x80)
Notify (^BAT0, 0x80)
\PNOT ()
@ -147,7 +147,7 @@ Device (EC0)
/* Lid openend */
Method (_Q2A, 0, NotSerialized)
{
Store (One, LIDS)
LIDS = 1
Notify(^LID, 0x80)
^HKEY.MHKQ (0x5002)
}
@ -155,7 +155,7 @@ Device (EC0)
/* Lid closed */
Method (_Q2B, 0, NotSerialized)
{
Store (Zero, LIDS)
LIDS = 0
Notify(^LID, 0x80)
^HKEY.MHKQ (0x5001)
}
@ -236,7 +236,7 @@ Device (EC0)
/* FN+Esc pressed / FN row mode switch */
Method (_Q74, 0, NotSerialized) {
XOr(One, HKFA, HKFA)
HKFA = 1 ^ HKFA
^HKEY.MHKQ (0x6060)
}
@ -270,11 +270,11 @@ Device (EC0)
{
Acquire (XDHK, 0xFFFF)
ShiftLeft (One, Decrement (Arg0), Local0)
Local0 = 1 << Arg0--
If (Arg1) {
Or (Local0, DHKN, DHKN)
DHKN |= Local0
} Else {
And (Not(Local0), DHKN, DHKN)
DHKN &= ~Local0
}
Release (XDHK)
@ -284,7 +284,7 @@ Device (EC0)
{
Acquire (XDHK, 0xFFFF)
Store (Arg0, DHKC)
DHKC = Arg0
Release (XDHK)
}
@ -293,11 +293,11 @@ Device (EC0)
{
Acquire (XDHK, 0xFFFF)
Store (Zero, Local0)
Local0 = 0
if (DHKV) {
Store (DHKV, Local0)
Store (Zero, DHKV)
Local0 = DHKV
DHKV = 0
}
Release (XDHK)
@ -309,7 +309,7 @@ Device (EC0)
{
Acquire (XDHK, 0xFFFF)
Store (Arg0, DHKV)
DHKV = Arg0
Release (XDHK)
@ -320,7 +320,7 @@ Device (EC0)
/* LED support for thinkpad-acpi */
Method (LED, 2, NotSerialized)
{
Or (Arg0, Arg1, HLCL)
HLCL = Arg0 | Arg1
}
Device (AC)

View File

@ -3,8 +3,8 @@
Method(_WAK,1)
{
/* Turn on radios */
Store (One, GP33) /* WLBT_OFF_5# (To pin 5 of WiFi mPCIe) */
Store (One, GP36) /* WLBT_OFF_51# (To pin 51 of WiFi mPCIe) */
GP33 = 1 /* WLBT_OFF_5# (To pin 5 of WiFi mPCIe) */
GP36 = 1 /* WLBT_OFF_51# (To pin 51 of WiFi mPCIe) */
/* There also is RF_OFF# on pin 20, controlled by the EC */
Return(Package(){0,0})
@ -13,8 +13,8 @@ Method(_WAK,1)
Method(_PTS,1)
{
/* Turn off radios */
Store (Zero, GP33) /* WLBT_OFF_5# (To pin 5 of WiFi mPCIe) */
Store (Zero, GP36) /* WLBT_OFF_51# (To pin 51 of WiFi mPCIe) */
GP33 = 0 /* WLBT_OFF_5# (To pin 5 of WiFi mPCIe) */
GP36 = 0 /* WLBT_OFF_51# (To pin 51 of WiFi mPCIe) */
/* There also is RF_OFF# on pin 20, controlled by the EC */
}
@ -22,7 +22,7 @@ Scope(\_SI)
{
Method(_SST, 1, NotSerialized)
{
If (LLess(Arg0, 2))
If (Arg0 < 2)
{
/* Thinkpad LED on */
\_SB.PCI0.LPCB.EC0.LED (Zero, 0x80)