diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-26 08:45:56 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-27 09:05:15 +0000 |
commit | 7b8ac0030c611ad84d9ba84b3e90c36233a32c11 (patch) | |
tree | e2dbc1e8cedf54fc1449e759deaff4e42c5f1bc6 /src/soc/intel/skylake | |
parent | dfbb634ae16065811894d67ff802c1e838ce0749 (diff) |
{acpi,arch,soc}/acpi: Replace constant "One" with actual number
Change-Id: I3dfd7dd1de3bd27c35c195bd43c4a5b8c5a2dc53
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71522
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/skylake')
-rw-r--r-- | src/soc/intel/skylake/acpi/pch_hda.asl | 6 | ||||
-rw-r--r-- | src/soc/intel/skylake/acpi/xhci.asl | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/soc/intel/skylake/acpi/pch_hda.asl b/src/soc/intel/skylake/acpi/pch_hda.asl index 3de64b7f42..d9a5f5d52c 100644 --- a/src/soc/intel/skylake/acpi/pch_hda.asl +++ b/src/soc/intel/skylake/acpi/pch_hda.asl @@ -37,9 +37,9 @@ Device (HDAS) * if NHLT address and length are set in NVS. */ If ((Arg1 == 1) && (NHLA != 0) && (NHLL != 0)) { - Return (Buffer (One) { 0x03 }) + Return (Buffer (1) { 0x03 }) } Else { - Return (Buffer (One) { 0x01 }) + Return (Buffer (1) { 0x01 }) } } @@ -63,6 +63,6 @@ Device (HDAS) } } - Return (Buffer (One) { 0x00 }) + Return (Buffer (1) { 0x00 }) } } diff --git a/src/soc/intel/skylake/acpi/xhci.asl b/src/soc/intel/skylake/acpi/xhci.asl index 31d215219a..812bbed4ba 100644 --- a/src/soc/intel/skylake/acpi/xhci.asl +++ b/src/soc/intel/skylake/acpi/xhci.asl @@ -44,7 +44,7 @@ Method (UWES, 3, Serialized) { Local0 = Arg0 - While (One) { + While (1) { FindSetRightBit (Local0, Local1) If (Local1 == Zero) { Break @@ -225,7 +225,7 @@ Device (XHCI) REV = 0x02 // VISI: Port visibility to user per port - CreateField (DerefOf (PCKG[0]), 0x40, One, VISI) + CreateField (DerefOf (PCKG[0]), 0x40, 1, VISI) VISI = Arg0 Return (PCKG) |