summaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 07:54:16 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-23 10:18:55 +0000
commitd25277666829d7ed9897598d3ed46fdee0613106 (patch)
treea8aa22ed086730113ae0fefb2584fb0f424cc5c4 /src/soc/intel
parent35e65a8bc36628baad7d2ed94bef7619971e6d88 (diff)
tree: Replace And(a,b) with ASL 2.0 syntax
Replace `And (a, b)` with `a & b`. Change-Id: Id8bbd1a477e6286bbcb5fa31afd1c7a860b1c7dc Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70851 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/baytrail/acpi/irqlinks.asl32
-rw-r--r--src/soc/intel/braswell/acpi/irqlinks.asl32
-rw-r--r--src/soc/intel/cannonlake/acpi/gpio.asl2
3 files changed, 33 insertions, 33 deletions
diff --git a/src/soc/intel/baytrail/acpi/irqlinks.asl b/src/soc/intel/baytrail/acpi/irqlinks.asl
index 9d42bef600..1586ec59e5 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 */
- IRQ0 = 1 << And(PRTA, 0x0f)
+ IRQ0 = 1 << (PRTA & 0x0f)
Return (RTLA)
}
@@ -51,7 +51,7 @@ Device (LNKA)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTA, 0x80)) {
+ If (PRTA & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -90,7 +90,7 @@ Device (LNKB)
IRQ0 = Zero
/* Set the bit from PRTB */
- IRQ0 = 1 << And(PRTB, 0x0f)
+ IRQ0 = 1 << (PRTB & 0x0f)
Return (RTLB)
}
@@ -110,7 +110,7 @@ Device (LNKB)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTB, 0x80)) {
+ If (PRTB & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -149,7 +149,7 @@ Device (LNKC)
IRQ0 = Zero
/* Set the bit from PRTC */
- IRQ0 = 1 << And(PRTC, 0x0f)
+ IRQ0 = 1 << (PRTC & 0x0f)
Return (RTLC)
}
@@ -169,7 +169,7 @@ Device (LNKC)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTC, 0x80)) {
+ If (PRTC & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -208,7 +208,7 @@ Device (LNKD)
IRQ0 = Zero
/* Set the bit from PRTD */
- IRQ0 = 1 << And(PRTD, 0x0f)
+ IRQ0 = 1 << (PRTD & 0x0f)
Return (RTLD)
}
@@ -228,7 +228,7 @@ Device (LNKD)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTD, 0x80)) {
+ If (PRTD & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -267,7 +267,7 @@ Device (LNKE)
IRQ0 = Zero
/* Set the bit from PRTE */
- IRQ0 = 1 << And(PRTE, 0x0f)
+ IRQ0 = 1 << (PRTE & 0x0f)
Return (RTLE)
}
@@ -287,7 +287,7 @@ Device (LNKE)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTE, 0x80)) {
+ If (PRTE & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -326,7 +326,7 @@ Device (LNKF)
IRQ0 = Zero
/* Set the bit from PRTF */
- IRQ0 = 1 << And(PRTF, 0x0f)
+ IRQ0 = 1 << (PRTF & 0x0f)
Return (RTLF)
}
@@ -346,7 +346,7 @@ Device (LNKF)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTF, 0x80)) {
+ If (PRTF & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -385,7 +385,7 @@ Device (LNKG)
IRQ0 = Zero
/* Set the bit from PRTG */
- IRQ0 = 1 << And(PRTG, 0x0f)
+ IRQ0 = 1 << (PRTG & 0x0f)
Return (RTLG)
}
@@ -405,7 +405,7 @@ Device (LNKG)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTG, 0x80)) {
+ If (PRTG & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -444,7 +444,7 @@ Device (LNKH)
IRQ0 = Zero
/* Set the bit from PRTH */
- IRQ0 = 1 << And(PRTH, 0x0f)
+ IRQ0 = 1 << (PRTH & 0x0f)
Return (RTLH)
}
@@ -464,7 +464,7 @@ Device (LNKH)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTH, 0x80)) {
+ If (PRTH & 0x80) {
Return (0x9)
} Else {
Return (0xb)
diff --git a/src/soc/intel/braswell/acpi/irqlinks.asl b/src/soc/intel/braswell/acpi/irqlinks.asl
index bfb80fcb0d..e3df22de7b 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 */
- IRQ0 = 1 << And(PRTA, 0x0f)
+ IRQ0 = 1 << (PRTA & 0x0f)
Return (RTLA)
}
@@ -51,7 +51,7 @@ Device (LNKA)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTA, 0x80)) {
+ If (PRTA & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -90,7 +90,7 @@ Device (LNKB)
IRQ0 = Zero
/* Set the bit from PRTB */
- IRQ0 = 1 << And(PRTB, 0x0f)
+ IRQ0 = 1 << (PRTB & 0x0f)
Return (RTLB)
}
@@ -110,7 +110,7 @@ Device (LNKB)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTB, 0x80)) {
+ If (PRTB & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -149,7 +149,7 @@ Device (LNKC)
IRQ0 = Zero
/* Set the bit from PRTC */
- IRQ0 = 1 << And(PRTC, 0x0f)
+ IRQ0 = 1 << (PRTC & 0x0f)
Return (RTLC)
}
@@ -169,7 +169,7 @@ Device (LNKC)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTC, 0x80)) {
+ If (PRTC & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -208,7 +208,7 @@ Device (LNKD)
IRQ0 = Zero
/* Set the bit from PRTD */
- IRQ0 = 1 << And(PRTD, 0x0f)
+ IRQ0 = 1 << (PRTD & 0x0f)
Return (RTLD)
}
@@ -228,7 +228,7 @@ Device (LNKD)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTD, 0x80)) {
+ If (PRTD & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -267,7 +267,7 @@ Device (LNKE)
IRQ0 = Zero
/* Set the bit from PRTE */
- IRQ0 = 1 << And(PRTE, 0x0f)
+ IRQ0 = 1 << (PRTE & 0x0f)
Return (RTLE)
}
@@ -287,7 +287,7 @@ Device (LNKE)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTE, 0x80)) {
+ If (PRTE & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -326,7 +326,7 @@ Device (LNKF)
IRQ0 = Zero
/* Set the bit from PRTF */
- IRQ0 = 1 << And(PRTF, 0x0f)
+ IRQ0 = 1 << (PRTF & 0x0f)
Return (RTLF)
}
@@ -346,7 +346,7 @@ Device (LNKF)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTF, 0x80)) {
+ If (PRTF & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -385,7 +385,7 @@ Device (LNKG)
IRQ0 = Zero
/* Set the bit from PRTG */
- IRQ0 = 1 << And(PRTG, 0x0f)
+ IRQ0 = 1 << (PRTG & 0x0f)
Return (RTLG)
}
@@ -405,7 +405,7 @@ Device (LNKG)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTG, 0x80)) {
+ If (PRTG & 0x80) {
Return (0x9)
} Else {
Return (0xb)
@@ -444,7 +444,7 @@ Device (LNKH)
IRQ0 = Zero
/* Set the bit from PRTH */
- IRQ0 = 1 << And(PRTH, 0x0f)
+ IRQ0 = 1 << (PRTH & 0x0f)
Return (RTLH)
}
@@ -464,7 +464,7 @@ Device (LNKH)
/* Status */
Method (_STA, 0, Serialized)
{
- If(And(PRTH, 0x80)) {
+ If (PRTH & 0x80) {
Return (0x9)
} Else {
Return (0xb)
diff --git a/src/soc/intel/cannonlake/acpi/gpio.asl b/src/soc/intel/cannonlake/acpi/gpio.asl
index 6b2e2fcd50..5ae7f74668 100644
--- a/src/soc/intel/cannonlake/acpi/gpio.asl
+++ b/src/soc/intel/cannonlake/acpi/gpio.asl
@@ -140,7 +140,7 @@ Method (CGPM, 2, Serialized)
/* Mask off current PM bits */
PCRA (Local0, GPIO_MISCCFG, Not (MISCCFG_GPIO_PM_CONFIG_BITS))
/* Mask in requested bits */
- PCRO (Local0, GPIO_MISCCFG, And (Arg1, MISCCFG_GPIO_PM_CONFIG_BITS))
+ PCRO (Local0, GPIO_MISCCFG, Arg1 & MISCCFG_GPIO_PM_CONFIG_BITS)
}
}