summaryrefslogtreecommitdiff
path: root/src/mainboard
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/mainboard
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/mainboard')
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl2
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl2
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/superio.asl2
-rw-r--r--src/mainboard/lenovo/s230u/acpi/gpe.asl4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl b/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
index 5f27bff67c..4189271493 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
@@ -40,7 +40,7 @@ Device (MBRS)
Local1++
If (Local1 > 0x40)
{
- ShiftLeft (Local1, 0x1A, LELM)
+ LELM = Local1 << 0x1A
}
diff --git a/src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl b/src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl
index a2537c271b..6976be84d4 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl
@@ -43,7 +43,7 @@ Method (_CRS, 0, NotSerialized)
CreateDWordField (PBRS, \_SB.PCI0._Y08._LEN, LENM)
And (\_SB.PCI0.TOLM, 0xF800, Local1)
Local1 >>= 4
- ShiftLeft (Local1, 0x14, MEML)
+ MEML = Local1 << 0x14
MEMH = IO_APIC_ADDR - 1
LENM = IO_APIC_ADDR - MEML
diff --git a/src/mainboard/aopen/dxplplusu/acpi/superio.asl b/src/mainboard/aopen/dxplplusu/acpi/superio.asl
index 1d1d2d81db..22b0e2297e 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/superio.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/superio.asl
@@ -76,7 +76,7 @@ Method (_CRS, 0, NotSerialized)
IOM1 = 0x00
IOM2 = 0x00
Or (\_SB.PCI0.ICH0.SMSC.IOAH, IOM1, IOM1)
- ShiftLeft (IOM1, 0x08, IOM1)
+ IOM1 <<= 8
Or (\_SB.PCI0.ICH0.SMSC.IOAL, IOM1, IOM1)
IOM2 = IOM1
If (IOM1 != 0)
diff --git a/src/mainboard/lenovo/s230u/acpi/gpe.asl b/src/mainboard/lenovo/s230u/acpi/gpe.asl
index 76461f619d..9b22e67ecc 100644
--- a/src/mainboard/lenovo/s230u/acpi/gpe.asl
+++ b/src/mainboard/lenovo/s230u/acpi/gpe.asl
@@ -4,7 +4,7 @@ Scope (_GPE)
{
Name (PDET, Zero)
Method (PNOT, 2, Serialized) {
- ShiftLeft (Arg0, Arg1, Local0)
+ Local0 = Arg0 << Arg1
Not( ShiftLeft (One, Arg1), Local1)
Or (Local0, And (Local1, PDET), PDET)
If (PDET == Zero) {
@@ -17,7 +17,7 @@ Scope (_GPE)
}
Method (TINV, 2, Serialized) {
- ShiftLeft (One, Arg1, Local0)
+ Local0 = One << Arg1
If (Arg0 == Zero) {
Not (Local0, Local0)
And (GIV0, Local0, GIV0)