summaryrefslogtreecommitdiff
path: root/src/superio/smsc
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-10-04 09:32:59 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-12 14:40:28 +0000
commitb77668cbdb6f8aac8f1e02e28104a6a5d4b7d15f (patch)
tree75c66b40be86856c915cfc4b3502341118fd4925 /src/superio/smsc
parentfaccd0cf7c321e23d3352abeb01be682f4c7dc31 (diff)
downloadcoreboot-b77668cbdb6f8aac8f1e02e28104a6a5d4b7d15f.tar.xz
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>
Diffstat (limited to 'src/superio/smsc')
-rw-r--r--src/superio/smsc/sio1007/acpi/superio.asl26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/superio/smsc/sio1007/acpi/superio.asl b/src/superio/smsc/sio1007/acpi/superio.asl
index b42e71eae9..5132df0762 100644
--- a/src/superio/smsc/sio1007/acpi/superio.asl
+++ b/src/superio/smsc/sio1007/acpi/superio.asl
@@ -39,33 +39,33 @@ Device (SIO) {
Method (ENTR, 0, NotSerialized)
{
- Store (0x87, SI2E)
- Store (0x01, SI2E)
- Store (0x55, SI2E)
- Store (0x55, SI2E)
+ SI2E = 0x87
+ SI2E = 0x01
+ SI2E = 0x55
+ SI2E = 0x55
}
Method (EXIT, 0, NotSerialized)
{
- Store (0x02, SCNT)
+ SCNT = 0x02
}
/* Parse activate register for an LDN */
Method (ISEN, 1, NotSerialized)
{
ENTR ()
- Store (Arg0, SLDN)
- Store (SACT, Local0)
+ SLDN = Arg0
+ Local0 = SACT
EXIT ()
/* Check if it exists */
- If (LEqual (Local0, 0xFF))
+ If (Local0 == 0xFF)
{
Return (0x00)
}
/* Check if activated */
- If (LEqual (Local0, One))
+ If (Local0 == 1)
{
Return (0x0F)
}
@@ -79,8 +79,8 @@ Device (SIO) {
Method (SENA, 1, NotSerialized)
{
ENTR ()
- Store (Arg0, SLDN)
- Store (One, SACT)
+ SLDN = Arg0
+ SACT = 1
EXIT ()
}
@@ -88,8 +88,8 @@ Device (SIO) {
Method (SDIS, 1, NotSerialized)
{
ENTR ()
- Store (Arg0, SLDN)
- Store (Zero, SACT)
+ SLDN = Arg0
+ SACT = 0
EXIT ()
}