tree/acpi: Replace constant "Zero" with actual number
Change-Id: I5a3e3506415f424bf0fdd48fc449520a76622af5
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71525
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/soc/intel/baytrail/acpi/dptf/charger.asl b/src/soc/intel/baytrail/acpi/dptf/charger.asl
index d4a92f1..44e4064 100644
--- a/src/soc/intel/baytrail/acpi/dptf/charger.asl
+++ b/src/soc/intel/baytrail/acpi/dptf/charger.asl
@@ -30,7 +30,7 @@
Local0--
/* Check if charging is disabled (AC removed) */
- If (\PWRS == Zero) {
+ If (\PWRS == 0) {
/* Return last power state */
Return (Local0)
} Else {
diff --git a/src/soc/intel/baytrail/acpi/irqlinks.asl b/src/soc/intel/baytrail/acpi/irqlinks.asl
index 1586ec59..af89c33 100644
--- a/src/soc/intel/baytrail/acpi/irqlinks.asl
+++ b/src/soc/intel/baytrail/acpi/irqlinks.asl
@@ -28,7 +28,7 @@
CreateWordField(RTLA, 1, IRQ0)
/* Clear the WordField */
- IRQ0 = Zero
+ IRQ0 = 0
/* Set the bit from PRTA */
IRQ0 = 1 << (PRTA & 0x0f)
@@ -87,7 +87,7 @@
CreateWordField(RTLB, 1, IRQ0)
/* Clear the WordField */
- IRQ0 = Zero
+ IRQ0 = 0
/* Set the bit from PRTB */
IRQ0 = 1 << (PRTB & 0x0f)
@@ -146,7 +146,7 @@
CreateWordField(RTLC, 1, IRQ0)
/* Clear the WordField */
- IRQ0 = Zero
+ IRQ0 = 0
/* Set the bit from PRTC */
IRQ0 = 1 << (PRTC & 0x0f)
@@ -205,7 +205,7 @@
CreateWordField(RTLD, 1, IRQ0)
/* Clear the WordField */
- IRQ0 = Zero
+ IRQ0 = 0
/* Set the bit from PRTD */
IRQ0 = 1 << (PRTD & 0x0f)
@@ -264,7 +264,7 @@
CreateWordField(RTLE, 1, IRQ0)
/* Clear the WordField */
- IRQ0 = Zero
+ IRQ0 = 0
/* Set the bit from PRTE */
IRQ0 = 1 << (PRTE & 0x0f)
@@ -323,7 +323,7 @@
CreateWordField(RTLF, 1, IRQ0)
/* Clear the WordField */
- IRQ0 = Zero
+ IRQ0 = 0
/* Set the bit from PRTF */
IRQ0 = 1 << (PRTF & 0x0f)
@@ -382,7 +382,7 @@
CreateWordField(RTLG, 1, IRQ0)
/* Clear the WordField */
- IRQ0 = Zero
+ IRQ0 = 0
/* Set the bit from PRTG */
IRQ0 = 1 << (PRTG & 0x0f)
@@ -441,7 +441,7 @@
CreateWordField(RTLH, 1, IRQ0)
/* Clear the WordField */
- IRQ0 = Zero
+ IRQ0 = 0
/* Set the bit from PRTH */
IRQ0 = 1 << (PRTH & 0x0f)
diff --git a/src/soc/intel/baytrail/acpi/southcluster.asl b/src/soc/intel/baytrail/acpi/southcluster.asl
index 53f181e..dacdd29 100644
--- a/src/soc/intel/baytrail/acpi/southcluster.asl
+++ b/src/soc/intel/baytrail/acpi/southcluster.asl
@@ -155,7 +155,7 @@
CreateDWordField (MCRS, ^LMEM._MIN, LMIN)
CreateDWordField (MCRS, ^LMEM._MAX, LMAX)
CreateDWordField (MCRS, ^LMEM._LEN, LLEN)
- If (LPFW != Zero && LPEN == 1)
+ If (LPFW != 0 && LPEN == 1)
{
LMIN = LPFW
LLEN = 0x00100000
@@ -163,9 +163,9 @@
}
Else
{
- LMIN = Zero
- LMAX = Zero
- LLEN = Zero
+ LMIN = 0
+ LMAX = 0
+ LLEN = 0
}
/* Update PCI resource area */
diff --git a/src/soc/intel/baytrail/acpi/xhci.asl b/src/soc/intel/baytrail/acpi/xhci.asl
index 86b6ae9..368f34f 100644
--- a/src/soc/intel/baytrail/acpi/xhci.asl
+++ b/src/soc/intel/baytrail/acpi/xhci.asl
@@ -17,7 +17,7 @@
})
// REV: Revision 0x02 for ACPI 5.0
- CreateField (DerefOf (PCKG[0]), Zero, 0x07, REV)
+ CreateField (DerefOf (PCKG[0]), 0, 0x07, REV)
REV = 0x02
// VISI: Port visibility to user per port