From 3c9291b3359d91d7238ed1886f4d87d635a6df55 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 16 Dec 2022 02:43:56 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70841 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/soc/intel/baytrail/acpi/irqlinks.asl | 16 ++++++++-------- src/soc/intel/braswell/acpi/irqlinks.asl | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/baytrail/acpi/irqlinks.asl b/src/soc/intel/baytrail/acpi/irqlinks.asl index d0f3dcb691..9d42bef600 100644 --- a/src/soc/intel/baytrail/acpi/irqlinks.asl +++ b/src/soc/intel/baytrail/acpi/irqlinks.asl @@ -31,7 +31,7 @@ Device (LNKA) IRQ0 = Zero /* Set the bit from PRTA */ - ShiftLeft(1, And(PRTA, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTA, 0x0f) Return (RTLA) } @@ -90,7 +90,7 @@ Device (LNKB) IRQ0 = Zero /* Set the bit from PRTB */ - ShiftLeft(1, And(PRTB, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTB, 0x0f) Return (RTLB) } @@ -149,7 +149,7 @@ Device (LNKC) IRQ0 = Zero /* Set the bit from PRTC */ - ShiftLeft(1, And(PRTC, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTC, 0x0f) Return (RTLC) } @@ -208,7 +208,7 @@ Device (LNKD) IRQ0 = Zero /* Set the bit from PRTD */ - ShiftLeft(1, And(PRTD, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTD, 0x0f) Return (RTLD) } @@ -267,7 +267,7 @@ Device (LNKE) IRQ0 = Zero /* Set the bit from PRTE */ - ShiftLeft(1, And(PRTE, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTE, 0x0f) Return (RTLE) } @@ -326,7 +326,7 @@ Device (LNKF) IRQ0 = Zero /* Set the bit from PRTF */ - ShiftLeft(1, And(PRTF, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTF, 0x0f) Return (RTLF) } @@ -385,7 +385,7 @@ Device (LNKG) IRQ0 = Zero /* Set the bit from PRTG */ - ShiftLeft(1, And(PRTG, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTG, 0x0f) Return (RTLG) } @@ -444,7 +444,7 @@ Device (LNKH) IRQ0 = Zero /* Set the bit from PRTH */ - ShiftLeft(1, And(PRTH, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTH, 0x0f) Return (RTLH) } diff --git a/src/soc/intel/braswell/acpi/irqlinks.asl b/src/soc/intel/braswell/acpi/irqlinks.asl index 42fc97e6b2..bfb80fcb0d 100644 --- a/src/soc/intel/braswell/acpi/irqlinks.asl +++ b/src/soc/intel/braswell/acpi/irqlinks.asl @@ -31,7 +31,7 @@ Device (LNKA) IRQ0 = Zero /* Set the bit from PRTA */ - ShiftLeft(1, And(PRTA, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTA, 0x0f) Return (RTLA) } @@ -90,7 +90,7 @@ Device (LNKB) IRQ0 = Zero /* Set the bit from PRTB */ - ShiftLeft(1, And(PRTB, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTB, 0x0f) Return (RTLB) } @@ -149,7 +149,7 @@ Device (LNKC) IRQ0 = Zero /* Set the bit from PRTC */ - ShiftLeft(1, And(PRTC, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTC, 0x0f) Return (RTLC) } @@ -208,7 +208,7 @@ Device (LNKD) IRQ0 = Zero /* Set the bit from PRTD */ - ShiftLeft(1, And(PRTD, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTD, 0x0f) Return (RTLD) } @@ -267,7 +267,7 @@ Device (LNKE) IRQ0 = Zero /* Set the bit from PRTE */ - ShiftLeft(1, And(PRTE, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTE, 0x0f) Return (RTLE) } @@ -326,7 +326,7 @@ Device (LNKF) IRQ0 = Zero /* Set the bit from PRTF */ - ShiftLeft(1, And(PRTF, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTF, 0x0f) Return (RTLF) } @@ -385,7 +385,7 @@ Device (LNKG) IRQ0 = Zero /* Set the bit from PRTG */ - ShiftLeft(1, And(PRTG, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTG, 0x0f) Return (RTLG) } @@ -444,7 +444,7 @@ Device (LNKH) IRQ0 = Zero /* Set the bit from PRTH */ - ShiftLeft(1, And(PRTH, 0x0f), IRQ0) + IRQ0 = 1 << And(PRTH, 0x0f) Return (RTLH) } -- cgit v1.2.3