From 9df60d36b2637c500030e7c9cef620002f7f47bf Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 26 Dec 2022 09:43:07 +0100 Subject: tree/acpi: Replace constant "Zero" with actual number Change-Id: I5a3e3506415f424bf0fdd48fc449520a76622af5 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/71525 Reviewed-by: Subrata Banik Reviewed-by: Elyes Haouas Tested-by: build bot (Jenkins) --- src/soc/intel/skylake/acpi/systemagent.asl | 4 ++-- src/soc/intel/skylake/acpi/xhci.asl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/soc/intel/skylake/acpi') diff --git a/src/soc/intel/skylake/acpi/systemagent.asl b/src/soc/intel/skylake/acpi/systemagent.asl index f9b8f2d7c3..5a15ac5562 100644 --- a/src/soc/intel/skylake/acpi/systemagent.asl +++ b/src/soc/intel/skylake/acpi/systemagent.asl @@ -5,8 +5,8 @@ Name (_HID, EisaId ("PNP0A08") /* PCI Express Bus */) // _HID: Hardware ID Name (_CID, EisaId ("PNP0A03") /* PCI Bus */) // _CID: Compatible ID -Name (_SEG, Zero) // _SEG: PCI Segment -Name (_UID, Zero) // _UID: Unique ID +Name (_SEG, 0) // _SEG: PCI Segment +Name (_UID, 0) // _UID: Unique ID Device (MCHC) { diff --git a/src/soc/intel/skylake/acpi/xhci.asl b/src/soc/intel/skylake/acpi/xhci.asl index 812bbed4ba..e8c5ebf27e 100644 --- a/src/soc/intel/skylake/acpi/xhci.asl +++ b/src/soc/intel/skylake/acpi/xhci.asl @@ -46,7 +46,7 @@ Method (UWES, 3, Serialized) While (1) { FindSetRightBit (Local0, Local1) - If (Local1 == Zero) { + If (Local1 == 0) { Break } UPWE (Local1, Arg1, Arg2) @@ -209,7 +209,7 @@ Device (XHCI) /* Root Hub for Skylake-LP PCH */ Device (RHUB) { - Name (_ADR, Zero) + Name (_ADR, 0) // GPLD: Generate Port Location Data (PLD) Method (GPLD, 1, Serialized) @@ -221,7 +221,7 @@ Device (XHCI) }) // 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 -- cgit v1.2.3