superio/smsc/sio1007/acpi: Convert superio.asl to ASL 2.0 syntax
Change-Id: I9cca957104620e8fd4717d9bb77efa5a2c93b446 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45993 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
faccd0cf7c
commit
b77668cbdb
|
@ -39,33 +39,33 @@ Device (SIO) {
|
||||||
|
|
||||||
Method (ENTR, 0, NotSerialized)
|
Method (ENTR, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (0x87, SI2E)
|
SI2E = 0x87
|
||||||
Store (0x01, SI2E)
|
SI2E = 0x01
|
||||||
Store (0x55, SI2E)
|
SI2E = 0x55
|
||||||
Store (0x55, SI2E)
|
SI2E = 0x55
|
||||||
}
|
}
|
||||||
|
|
||||||
Method (EXIT, 0, NotSerialized)
|
Method (EXIT, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Store (0x02, SCNT)
|
SCNT = 0x02
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Parse activate register for an LDN */
|
/* Parse activate register for an LDN */
|
||||||
Method (ISEN, 1, NotSerialized)
|
Method (ISEN, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
ENTR ()
|
ENTR ()
|
||||||
Store (Arg0, SLDN)
|
SLDN = Arg0
|
||||||
Store (SACT, Local0)
|
Local0 = SACT
|
||||||
EXIT ()
|
EXIT ()
|
||||||
|
|
||||||
/* Check if it exists */
|
/* Check if it exists */
|
||||||
If (LEqual (Local0, 0xFF))
|
If (Local0 == 0xFF)
|
||||||
{
|
{
|
||||||
Return (0x00)
|
Return (0x00)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if activated */
|
/* Check if activated */
|
||||||
If (LEqual (Local0, One))
|
If (Local0 == 1)
|
||||||
{
|
{
|
||||||
Return (0x0F)
|
Return (0x0F)
|
||||||
}
|
}
|
||||||
|
@ -79,8 +79,8 @@ Device (SIO) {
|
||||||
Method (SENA, 1, NotSerialized)
|
Method (SENA, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
ENTR ()
|
ENTR ()
|
||||||
Store (Arg0, SLDN)
|
SLDN = Arg0
|
||||||
Store (One, SACT)
|
SACT = 1
|
||||||
EXIT ()
|
EXIT ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,8 +88,8 @@ Device (SIO) {
|
||||||
Method (SDIS, 1, NotSerialized)
|
Method (SDIS, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
ENTR ()
|
ENTR ()
|
||||||
Store (Arg0, SLDN)
|
SLDN = Arg0
|
||||||
Store (Zero, SACT)
|
SACT = 0
|
||||||
EXIT ()
|
EXIT ()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue