diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-16 02:43:56 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-23 08:30:09 +0000 |
commit | 3c9291b3359d91d7238ed1886f4d87d635a6df55 (patch) | |
tree | 55e5b79d71fd2e0b68b841195b5820bfa4f43520 /src/superio/winbond | |
parent | 034920c1d438ff39f9243a1d6b0d41957405d34c (diff) |
tree: Replace ShiftLeft(a,b,c) with ASL 2.0 syntax
Replace `ShiftLeft (a, b, c)` with `c = a << b`.
Change-Id: Ibd25a05f49f79e80592482a1b0532334f727af58
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70841
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/superio/winbond')
-rw-r--r-- | src/superio/winbond/w83627hf/acpi/superio.asl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/superio/winbond/w83627hf/acpi/superio.asl b/src/superio/winbond/w83627hf/acpi/superio.asl index d2b7264153..37f5cfa3e8 100644 --- a/src/superio/winbond/w83627hf/acpi/superio.asl +++ b/src/superio/winbond/w83627hf/acpi/superio.asl @@ -304,7 +304,7 @@ Device(SIO) { Local1 = IO1H Local2 = IO1L EXIT_CONFIG_MODE () - ShiftLeft(Local1, 8, Local1) + Local1 <<= 8 Or(Local1, Local2, Local1) If (!Local0) { Return (FDE) @@ -503,7 +503,7 @@ Device(SIO) { } /* Calculate IRQ bitmap */ Local0 = One - ShiftLeft (Local0, Local5, IRQW) + IRQW = Local0 << Local5 /* Return resource template */ Return (CRS) } @@ -660,7 +660,7 @@ Device(SIO) { CreateWordField (CRS, IRQX._INT, IRQW) Local3 = One - ShiftLeft (Local3, Local2, IRQW) + IRQW = Local3 << Local2 Return (CRS) } @@ -785,7 +785,7 @@ Device(SIO) { CreateWordField (CRS, IRQX._INT, IRQW) Local3 = One - ShiftLeft (Local3, Local2, IRQW) + IRQW = Local3 << Local2 Return (CRS) } @@ -910,7 +910,7 @@ Device(SIO) { CreateWordField (CRS, IRQX._INT, IRQW) Local3 = One - ShiftLeft (Local3, Local2, IRQW) + IRQW = Local3 << Local2 Return (CRS) } @@ -1013,7 +1013,7 @@ Device(SIO) { CreateWordField (CRS, IRQX._INT, IRQW) Local3 = One - ShiftLeft (Local3, Local2, IRQW) + IRQW = Local3 << Local2 Return (CRS) } @@ -1114,7 +1114,7 @@ Device(SIO) { CreateWordField (CRS, IRQX._INT, IRQW) Local5 = One - ShiftLeft (Local5, Local4, IRQW) + IRQW = Local5 << Local4 Return (CRS) } @@ -1199,7 +1199,7 @@ Device(SIO) { CreateWordField (CRS, IRQX._INT, IRQW) Local5 = One - ShiftLeft (Local5, Local4, IRQW) + IRQW = Local5 << Local4 Return (CRS) } @@ -1278,7 +1278,7 @@ Device(SIO) { If (Local2) { CreateWordField (CRS, IRQX._INT, IRQW) Local3 = One - ShiftLeft (Local3, Local2, IRQW) + IRQW = Local3 << Local2 } Return (CRS) @@ -1333,7 +1333,7 @@ Device(SIO) { If (Local2) { CreateWordField (CRS, IRQX._INT, IRQW) Local3 = One - ShiftLeft (Local3, Local2, IRQW) + IRQW = Local3 << Local2 } Return (CRS) @@ -1432,7 +1432,7 @@ Device(SIO) { If (Local2) { CreateWordField (CRS, IRQX._INT, IRQW) Local3 = One - ShiftLeft (Local3, Local2, IRQW) + IRQW = Local3 << Local2 } Return (CRS) } |