summaryrefslogtreecommitdiff
path: root/src/superio
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 02:43:56 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-23 08:30:09 +0000
commit3c9291b3359d91d7238ed1886f4d87d635a6df55 (patch)
tree55e5b79d71fd2e0b68b841195b5820bfa4f43520 /src/superio
parent034920c1d438ff39f9243a1d6b0d41957405d34c (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')
-rw-r--r--src/superio/acpi/pnp.asl4
-rw-r--r--src/superio/winbond/w83627hf/acpi/superio.asl22
2 files changed, 13 insertions, 13 deletions
diff --git a/src/superio/acpi/pnp.asl b/src/superio/acpi/pnp.asl
index f403a669b1..51fdb4fbb8 100644
--- a/src/superio/acpi/pnp.asl
+++ b/src/superio/acpi/pnp.asl
@@ -108,11 +108,11 @@
#define PNP_READ_IRQ(IRQ_FROM, RESOURCE_TEMPLATE, IRQ_TAG) \
CreateWordField (RESOURCE_TEMPLATE, IRQ_TAG._INT, IRQ_TAG##W)\
- ShiftLeft (One, IRQ_FROM, IRQ_TAG##W)
+ IRQ_TAG##W = One << IRQ_FROM
#define PNP_READ_DMA(DMA_FROM, RESOURCE_TEMPLATE, DMA_TAG) \
CreateByteField (RESOURCE_TEMPLATE, DMA_TAG._DMA, DMA_TAG##W)\
- ShiftLeft (One, DMA_FROM, DMA_TAG##W)
+ DMA_TAG##W = One << DMA_FROM
#define PNP_WRITE_IO(IO_TO, RESOURCE, IO_TAG) \
CreateWordField (RESOURCE, IO_TAG._MIN, IO_TAG##I)\
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)
}