mb/lenovo/g505s: Convert to ASL 2.0 syntax

Change-Id: I56f844706ba6bde3e57a6a81ff1d8e16863913f2
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46189
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:51:33 +02:00 committed by Michael Niewöhner
parent 9dfa63b3fd
commit dc324792be
3 changed files with 15 additions and 15 deletions

View File

@ -15,7 +15,7 @@ Scope(\_GPE) { /* Start Scope GPE */
/* USB controller PME# */ /* USB controller PME# */
Method(_L0B) { Method(_L0B) {
Store("USB PME", Debug) Debug = "USB PME"
/* Notify devices of wake event */ /* Notify devices of wake event */
Notify(\_SB.PCI0.UOH1, 0x02) Notify(\_SB.PCI0.UOH1, 0x02)
Notify(\_SB.PCI0.UOH2, 0x02) Notify(\_SB.PCI0.UOH2, 0x02)
@ -37,16 +37,16 @@ Scope(\_GPE) { /* Start Scope GPE */
/* Lid switch opened or closed */ /* Lid switch opened or closed */
Method(_L16) { Method(_L16) {
Store("Lid status changed", Debug) Debug = "Lid status changed"
/* Flip trigger polarity */ /* Flip trigger polarity */
Not(LPOL, LPOL) LPOL = ~LPOL
/* Notify lid object of status change */ /* Notify lid object of status change */
Notify(\_SB.LID, 0x80) Notify(\_SB.LID, 0x80)
} }
/* GPIO0 or GEvent8 event */ /* GPIO0 or GEvent8 event */
Method(_L18) { Method(_L18) {
Store("PCI bridge wake event", Debug) Debug = "PCI bridge wake event"
/* Notify PCI bridges of wake event */ /* Notify PCI bridges of wake event */
Notify(\_SB.PCI0.PBR4, 0x02) Notify(\_SB.PCI0.PBR4, 0x02)
Notify(\_SB.PCI0.PBR5, 0x02) Notify(\_SB.PCI0.PBR5, 0x02)

View File

@ -56,7 +56,7 @@
*/ */
Method (PNOT) Method (PNOT)
{ {
Store("Received PNOT call (probably from EC)", Debug) Debug = "Received PNOT call (probably from EC)"
/* TODO: Implement this */ /* TODO: Implement this */
} }
@ -75,7 +75,7 @@ Scope (\_SB) {
/* Make sure lid trigger polarity is set so that we /* Make sure lid trigger polarity is set so that we
* trigger an SCI when lid status changes. * trigger an SCI when lid status changes.
*/ */
Not(GE22, LPOL) LPOL = ~GE22
} }
} }
@ -95,7 +95,7 @@ Scope (\_SB) {
/* Toggle wireless */ /* Toggle wireless */
Method (WLTG) Method (WLTG)
{ {
Store( Not(GP57), GP57 ) GP57 = ~GP57
} }
/* Return lid state */ /* Return lid state */
Method (LIDS) Method (LIDS)

View File

@ -26,20 +26,20 @@ Method(\_PTS, 1) {
/* DBGO("\n") */ /* DBGO("\n") */
/* Clear sleep SMI status flag and enable sleep SMI trap. */ /* Clear sleep SMI status flag and enable sleep SMI trap. */
/*Store(One, CSSM) /*CSSM = 1
Store(One, SSEN)*/ SSEN = 1*/
/* On older chips, clear PciExpWakeDisEn */ /* On older chips, clear PciExpWakeDisEn */
/*if (LLessEqual(\_SB.SBRI, 0x13)) { /*if (\_SB.SBRI <= 0x13) {
* Store(0,\_SB.PWDE) * \_SB.PWDE = 0
*} *}
*/ */
/* Clear wake status structure. */ /* Clear wake status structure. */
Store(0, Index(WKST,0)) WKST [0] = 0
Store(0, Index(WKST,1)) WKST [1] = 0
Store (0x07, UPWS) UPWS = 0x07
} /* End Method(\_PTS) */ } /* End Method(\_PTS) */
/* /*
@ -64,7 +64,7 @@ Method(\_WAK, 1) {
/* DBGO(" to S0\n") */ /* DBGO(" to S0\n") */
/* Re-enable HPET */ /* Re-enable HPET */
Store(1,USBS) USBS = 1
Return(WKST) Return(WKST)
} /* End Method(\_WAK) */ } /* End Method(\_WAK) */