diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-26 09:32:47 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-27 09:05:56 +0000 |
commit | fa06bcba06c5842faae797629e9f72ec28d511c0 (patch) | |
tree | 8fba8940a2bf47e403ee5009a623960cf344c975 /src/mainboard/intel | |
parent | 7b8ac0030c611ad84d9ba84b3e90c36233a32c11 (diff) |
mainboard/acpi: Replace constant "Zero" with actual number
Change-Id: I4f2f02623b060ef0ebefc5aceb713c77a8b1e9a6
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71523
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/intel')
-rw-r--r-- | src/mainboard/intel/baskingridge/acpi/thermal.asl | 10 | ||||
-rw-r--r-- | src/mainboard/intel/cedarisland_crb/acpi/platform.asl | 2 | ||||
-rw-r--r-- | src/mainboard/intel/emeraldlake2/acpi/thermal.asl | 10 | ||||
-rw-r--r-- | src/mainboard/intel/glkrvp/touchpad.asl | 2 | ||||
-rw-r--r-- | src/mainboard/intel/kblrvp/acpi/mipi_camera.asl | 50 | ||||
-rw-r--r-- | src/mainboard/intel/tglrvp/acpi/mipi_camera.asl | 42 | ||||
-rw-r--r-- | src/mainboard/intel/wtm2/acpi/thermal.asl | 10 |
7 files changed, 63 insertions, 63 deletions
diff --git a/src/mainboard/intel/baskingridge/acpi/thermal.asl b/src/mainboard/intel/baskingridge/acpi/thermal.asl index 373683064a..5649d87a2c 100644 --- a/src/mainboard/intel/baskingridge/acpi/thermal.asl +++ b/src/mainboard/intel/baskingridge/acpi/thermal.asl @@ -103,7 +103,7 @@ Scope (\_TZ) If (\FLVL <= 0) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -124,7 +124,7 @@ Scope (\_TZ) If (\FLVL <= 1) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -145,7 +145,7 @@ Scope (\_TZ) If (\FLVL <= 2) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -166,7 +166,7 @@ Scope (\_TZ) If (\FLVL <= 3) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -187,7 +187,7 @@ Scope (\_TZ) If (\FLVL <= 4) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { diff --git a/src/mainboard/intel/cedarisland_crb/acpi/platform.asl b/src/mainboard/intel/cedarisland_crb/acpi/platform.asl index 5f7ffbb94d..d58393c50a 100644 --- a/src/mainboard/intel/cedarisland_crb/acpi/platform.asl +++ b/src/mainboard/intel/cedarisland_crb/acpi/platform.asl @@ -11,7 +11,7 @@ Field (APMP, ByteAcc, NoLock, Preserve) #include <arch/x86/acpi/post.asl> -Name(\APC1, Zero) // IIO IOAPIC +Name(\APC1, 0) // IIO IOAPIC /* * The _PTS method (Prepare To Sleep) is called before the OS is diff --git a/src/mainboard/intel/emeraldlake2/acpi/thermal.asl b/src/mainboard/intel/emeraldlake2/acpi/thermal.asl index 3d5b25061d..af6c41e572 100644 --- a/src/mainboard/intel/emeraldlake2/acpi/thermal.asl +++ b/src/mainboard/intel/emeraldlake2/acpi/thermal.asl @@ -122,7 +122,7 @@ Scope (\_TZ) If (\FLVL <= 0) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -143,7 +143,7 @@ Scope (\_TZ) If (\FLVL <= 1) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -164,7 +164,7 @@ Scope (\_TZ) If (\FLVL <= 2) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -185,7 +185,7 @@ Scope (\_TZ) If (\FLVL <= 3) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -206,7 +206,7 @@ Scope (\_TZ) If (\FLVL <= 4) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { diff --git a/src/mainboard/intel/glkrvp/touchpad.asl b/src/mainboard/intel/glkrvp/touchpad.asl index 57b9c7fa2e..d3d8404806 100644 --- a/src/mainboard/intel/glkrvp/touchpad.asl +++ b/src/mainboard/intel/glkrvp/touchpad.asl @@ -38,7 +38,7 @@ If(Arg0 == ToUUID("3CDFF6F7-4267-4555-AD05-B30A3D8938DE")) { // Function 0 : Query Function - If(Arg2 == Zero) + If(Arg2 == 0) { // Revision 1 If(Arg1 == 1) diff --git a/src/mainboard/intel/kblrvp/acpi/mipi_camera.asl b/src/mainboard/intel/kblrvp/acpi/mipi_camera.asl index 0d1158dd37..5434262224 100644 --- a/src/mainboard/intel/kblrvp/acpi/mipi_camera.asl +++ b/src/mainboard/intel/kblrvp/acpi/mipi_camera.asl @@ -5,7 +5,7 @@ Scope (\_SB.PCI0.I2C2) Device (PMIC) { Name (_HID, "INT3472") /* _HID: Hardware ID */ - Name (_UID, Zero) // _UID: Unique ID */ + Name (_UID, 0) // _UID: Unique ID */ Name (_DDN, "TPS68470 PMIC") /* _DDN: DOS Device Name */ Name (CAMD, 0x64) @@ -15,12 +15,12 @@ Scope (\_SB.PCI0.I2C2) } /* Marks the availability of all the operation regions */ - Name (AVP1, Zero) - Name (AVGP, Zero) - Name (AVB0, Zero) - Name (AVB1, Zero) - Name (AVB2, Zero) - Name (AVB3, Zero) + Name (AVP1, 0) + Name (AVGP, 0) + Name (AVB0, 0) + Name (AVB1, 0) + Name (AVB2, 0) + Name (AVB3, 0) Method (_REG, 2, NotSerialized) { If (Arg0 == 0x08) @@ -90,7 +90,7 @@ Scope (\_SB.PCI0.I2C2) * VACT: Analog LDO output * VDCT: Core buck output */ - OperationRegion (PWR1, 0xB0, Zero, 0x0100) + OperationRegion (PWR1, 0xB0, 0, 0x0100) Field (PWR1, DWordAcc, NoLock, Preserve) { VSIO, 32, @@ -110,7 +110,7 @@ Scope (\_SB.PCI0.I2C2) * ACVA: Analog LDO VR voltage * DCVA: Core buck VR voltage */ - OperationRegion (PWR2, 0xB1, Zero, 0x0100) + OperationRegion (PWR2, 0xB1, 0, 0x0100) Field (PWR2, DWordAcc, NoLock, Preserve) { SIOV, 32, @@ -128,7 +128,7 @@ Scope (\_SB.PCI0.I2C2) * CFG1: Clock configuration 1 register * CFG2: Clock configuration 2 register */ - OperationRegion (CLKC, 0xB2, Zero, 0x0100) + OperationRegion (CLKC, 0xB2, 0, 0x0100) Field (CLKC, DWordAcc, NoLock, Preserve) { PCTL, 32, @@ -146,7 +146,7 @@ Scope (\_SB.PCI0.I2C2) * PLDV: PLL feedback divider * PODV: PLL output divider for HCLK_A */ - OperationRegion (CLKF, 0xB3, Zero, 0x0100) + OperationRegion (CLKF, 0xB3, 0, 0x0100) Field (CLKF, DWordAcc, NoLock, Preserve) { PDV2, 32, @@ -370,7 +370,7 @@ Scope (\_SB.PCI0.I2C2) Device (CAM0) { Name (_HID, "OVTID858") /* _HID: Hardware ID */ - Name (_UID, Zero) /* _UID: Unique ID */ + Name (_UID, 0) /* _UID: Unique ID */ Name (_DDN, "OV 13858 Camera") /* _DDN: DOS Device Name */ Name (CAMD, 0x02) @@ -475,7 +475,7 @@ Scope (\_SB.PCI0.I2C2) Device (VCM0) { Name (_HID, "DWDWD000") /* _HID: Hardware ID */ - Name (_UID, Zero) /* _UID: Unique ID */ + Name (_UID, 0) /* _UID: Unique ID */ Name (_DDN, "Dongwoon AF DAC") /* _DDN: DOS Device Name */ Name (CAMD, 0x03) @@ -503,7 +503,7 @@ Scope (\_SB.PCI0.I2C3) Device (PMIC) { Name (_HID, "INT3473") /* _HID: Hardware ID */ - Name (_UID, Zero) /* _UID: Unique ID */ + Name (_UID, 0) /* _UID: Unique ID */ Name (_DDN, "TPS68470 PMIC 2") /* _DDN: DOS Device Name */ Name (CAMD, 0x64) @@ -513,12 +513,12 @@ Scope (\_SB.PCI0.I2C3) } /* Marks the availability of all the operation regions */ - Name (AVP2, Zero) - Name (AVGP, Zero) - Name (AVB0, Zero) - Name (AVB1, Zero) - Name (AVB2, Zero) - Name (AVB3, Zero) + Name (AVP2, 0) + Name (AVGP, 0) + Name (AVB0, 0) + Name (AVB1, 0) + Name (AVB2, 0) + Name (AVB3, 0) Method (_REG, 2, NotSerialized) { If (Arg0 == 0x08) @@ -595,7 +595,7 @@ Scope (\_SB.PCI0.I2C3) * VACT: Analog LDO output * VDCT: Core buck output */ - OperationRegion (PWR1, 0xB0, Zero, 0x0100) + OperationRegion (PWR1, 0xB0, 0, 0x0100) Field (PWR1, DWordAcc, NoLock, Preserve) { VSIO, 32, @@ -615,7 +615,7 @@ Scope (\_SB.PCI0.I2C3) * ACVA: Analog LDO VR voltage * DCVA: Core buck VR voltage */ - OperationRegion (PWR2, 0xB1, Zero, 0x0100) + OperationRegion (PWR2, 0xB1, 0, 0x0100) Field (PWR2, DWordAcc, NoLock, Preserve) { SIOV, 32, @@ -633,7 +633,7 @@ Scope (\_SB.PCI0.I2C3) * CFG1: Clock configuration 1 register * CFG2: Clock configuration 2 register */ - OperationRegion (CLKC, 0xB2, Zero, 0x0100) + OperationRegion (CLKC, 0xB2, 0, 0x0100) Field (CLKC, DWordAcc, NoLock, Preserve) { PCTL, 32, @@ -651,7 +651,7 @@ Scope (\_SB.PCI0.I2C3) * PLDV: PLL feedback divider * PODV: PLL output divider for HCLK_A */ - OperationRegion (CLKF, 0xB3, Zero, 0x0100) + OperationRegion (CLKF, 0xB3, 0, 0x0100) Field (CLKF, DWordAcc, NoLock, Preserve) { PDV2, 32, @@ -806,7 +806,7 @@ Scope (\_SB.PCI0.I2C3) Device (CAM1) { Name (_HID, "INT3479") /* _HID: Hardware ID */ - Name (_UID, Zero) /* _UID: Unique ID */ + Name (_UID, 0) /* _UID: Unique ID */ Name (_DDN, "OV 5670 Camera") /* _DDN: DOS Device Name */ Name (CAMD, 0x02) diff --git a/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl b/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl index 290069b269..da4813b4d2 100644 --- a/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl +++ b/src/mainboard/intel/tglrvp/acpi/mipi_camera.asl @@ -76,12 +76,12 @@ Scope (\_SB.PCI0.IPU0) Package (0x02) { "endpoint", - Zero + 0 }, Package (0x02) { "clock-lanes", - Zero + 0 }, Package (0x02) { @@ -100,8 +100,8 @@ Scope (\_SB.PCI0.IPU0) Package (0x03) { ^I2C3.CAM0, - Zero, - Zero + 0, + 0 } } } @@ -114,12 +114,12 @@ Scope (\_SB.PCI0.IPU0) Package (0x02) { "endpoint", - Zero + 0 }, Package (0x02) { "clock-lanes", - Zero + 0 }, Package (0x02) { @@ -139,8 +139,8 @@ Scope (\_SB.PCI0.IPU0) Package (0x03) { ^I2C5.CAM1, - Zero, - Zero + 0, + 0 } } } @@ -151,7 +151,7 @@ Scope (\_SB.PCI0.I2C3) { PowerResource (RCPR, 0x00, 0x0000) { - Name (STA, Zero) + Name (STA, 0) Method (_ON, 0, Serialized) /* Rear camera_ON_: Power On */ { If (STA == 0) @@ -199,7 +199,7 @@ Scope (\_SB.PCI0.I2C3) Device (CAM0) { Name (_HID, "OVTI8856") /* _HID: Hardware ID */ - Name (_UID, Zero) /* _UID: Unique ID */ + Name (_UID, 0) /* _UID: Unique ID */ Name (_DDN, "Ov 8856 Camera") /* _DDN: DOS Device Name */ Method (_STA, 0, NotSerialized) /* _STA: Status */ { @@ -257,7 +257,7 @@ Scope (\_SB.PCI0.I2C3) Package (0x02) { "port", - Zero + 0 } }, ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), @@ -278,12 +278,12 @@ Scope (\_SB.PCI0.I2C3) Package (0x02) { "endpoint", - Zero + 0 }, Package (0x02) { "clock-lanes", - Zero + 0 }, Package (0x02) { @@ -311,8 +311,8 @@ Scope (\_SB.PCI0.I2C3) Package (0x03) { IPU0, - Zero, - Zero + 0, + 0 } } } @@ -366,7 +366,7 @@ Scope (\_SB.PCI0.I2C5) { PowerResource (FCPR, 0x00, 0x0000) { - Name (STA, Zero) + Name (STA, 0) Method (_ON, 0, Serialized) /* Front camera_ON_: Power On */ { If (STA == 0) @@ -422,7 +422,7 @@ Scope (\_SB.PCI0.I2C5) Device (CAM1) { Name (_HID, "OVTI8856") /* _HID: Hardware ID */ - Name (_UID, Zero) /* _UID: Unique ID */ + Name (_UID, 0) /* _UID: Unique ID */ Name (_DDN, "Ov 8856 Camera") /* _DDN: DOS Device Name */ Method (_STA, 0, NotSerialized) /* _STA: Status */ { @@ -472,7 +472,7 @@ Scope (\_SB.PCI0.I2C5) Package (0x02) { "port", - Zero + 0 } }, ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"), @@ -493,12 +493,12 @@ Scope (\_SB.PCI0.I2C5) Package (0x02) { "endpoint", - Zero + 0 }, Package (0x02) { "clock-lanes", - Zero + 0 }, Package (0x02) { @@ -527,7 +527,7 @@ Scope (\_SB.PCI0.I2C5) { IPU0, 1, - Zero + 0 } } } diff --git a/src/mainboard/intel/wtm2/acpi/thermal.asl b/src/mainboard/intel/wtm2/acpi/thermal.asl index 4d392430b1..cb0388f924 100644 --- a/src/mainboard/intel/wtm2/acpi/thermal.asl +++ b/src/mainboard/intel/wtm2/acpi/thermal.asl @@ -105,7 +105,7 @@ Scope (\_TZ) If (\FLVL <= 0) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -124,7 +124,7 @@ Scope (\_TZ) If (\FLVL <= 1) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -143,7 +143,7 @@ Scope (\_TZ) If (\FLVL <= 2) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -162,7 +162,7 @@ Scope (\_TZ) If (\FLVL <= 3) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { @@ -181,7 +181,7 @@ Scope (\_TZ) If (\FLVL <= 4) { Return (1) } Else { - Return (Zero) + Return (0) } } Method (_ON) { |