diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-26 09:38:45 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-27 09:06:29 +0000 |
commit | 42efd7f593c9d270ff330d1282d9c569d1ec709a (patch) | |
tree | bccc1e9c9bb2f9aec6c76c55611f0aafdb4f6e9b /src/superio/smsc | |
parent | fa06bcba06c5842faae797629e9f72ec28d511c0 (diff) |
{superio,ec}/acpi: Replace constant "Zero" with actual number
Change-Id: I449ec5b0bbf3f24d51688efef151d3018d2848b2
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71524
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/superio/smsc')
-rw-r--r-- | src/superio/smsc/sch5545/acpi/resource_helpers.asl | 30 | ||||
-rw-r--r-- | src/superio/smsc/sch5545/acpi/superio.asl | 18 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/superio/smsc/sch5545/acpi/resource_helpers.asl b/src/superio/smsc/sch5545/acpi/resource_helpers.asl index c3557f8d29..528bdb6365 100644 --- a/src/superio/smsc/sch5545/acpi/resource_helpers.asl +++ b/src/superio/smsc/sch5545/acpi/resource_helpers.asl @@ -41,7 +41,7 @@ Method (DSTA, 1, NotSerialized) Local0 = PNP_DEVICE_ACTIVE If (Local0 == 0xFF) { - Return (Zero) + Return (0) } Local0 &= 1 @@ -60,7 +60,7 @@ Method (DSTA, 1, NotSerialized) } Else { - Return (Zero) + Return (0) } EXIT_CONFIG_MODE () @@ -154,7 +154,7 @@ Method (GIOB, 1, NotSerialized) Return (Local0) } - Return (Zero) + Return (0) } /* Read IRQ resource */ @@ -239,7 +239,7 @@ Method (SIRQ, 2, NotSerialized) } Else { - Return (Zero) + Return (0) } } @@ -270,12 +270,12 @@ Method (SDMA, 2, NotSerialized) If (Local0 != Local1) { PNP_ADDR_REG = Local3 - PNP_DATA_REG = Zero + PNP_DATA_REG = 0 Break } Else { - Return (Zero) + Return (0) } } @@ -286,7 +286,7 @@ Method (SDMA, 2, NotSerialized) Local0 += 0x51 PNP_ADDR_REG = Local0 PNP_DATA_REG = (0x80 | CGLD (Arg0)) - Return (Zero) + Return (0) } /* Device Current Resource Settings */ @@ -299,9 +299,9 @@ Method (DCRS, 2, NotSerialized) IO12 = IO11 LEN1 = 0x08 IRQM = GIRQ (Arg0) - If ((GDMA (Arg0) > 0x03) || (Arg1 == Zero)) + If ((GDMA (Arg0) > 0x03) || (Arg1 == 0)) { - DMAM = Zero + DMAM = 0 } Else { @@ -319,9 +319,9 @@ Method (DCRS, 2, NotSerialized) IO12 = IO11 LEN1 = 0x08 IRQM = GIRQ (Arg0) - If ((GDMA (Arg0) > 0x03) || (Arg1 == Zero)) + If ((GDMA (Arg0) > 0x03) || (Arg1 == 0)) { - DMAM = Zero + DMAM = 0 } Else { @@ -353,9 +353,9 @@ Method (DCRS, 2, NotSerialized) } IRQE = GIRQ (Arg0) - If ((GDMA (Arg0) > 0x03) || (Arg1 == Zero)) + If ((GDMA (Arg0) > 0x03) || (Arg1 == 0)) { - DMAM = Zero + DMAM = 0 } Else { @@ -395,9 +395,9 @@ Method (DCRS, 2, NotSerialized) IO32 = IO31 /* \_SB_.PCI0.LPCB.SIO1.IO31 */ LEN3 = 1 IRQE = GIRQ (Arg0) - If ((GDMA (Arg0) > 0x03) || (Arg1 == Zero)) + If ((GDMA (Arg0) > 0x03) || (Arg1 == 0)) { - DMAM = Zero + DMAM = 0 } Else { diff --git a/src/superio/smsc/sch5545/acpi/superio.asl b/src/superio/smsc/sch5545/acpi/superio.asl index 8fb9da2824..c9a5f5a22e 100644 --- a/src/superio/smsc/sch5545/acpi/superio.asl +++ b/src/superio/smsc/sch5545/acpi/superio.asl @@ -56,7 +56,7 @@ Device(SIO1) { Name (IOST, 0x0001) /* IO decoding status */ Name (MSFG, 1) /* Mouse wake config */ Name (KBFG, 1) /* Keyboard wake config */ - Name (PMFG, Zero) /* Wake config */ + Name (PMFG, 0) /* Wake config */ /* SuperIO configuration ports */ OperationRegion (CREG, SystemIO, SUPERIO_PNP_BASE, 0x02) @@ -316,7 +316,7 @@ Device(SIO1) { While (KRDY) {} KP60 = 0xED While (KRDY) {} - KP60 = Zero + KP60 = 0 While (KRDY) {} KP60 = 0xF4 Sleep (1) @@ -383,17 +383,17 @@ Device(SIO1) { Name (_UID, SUPERIO_UID(SER, SUPERIO_UARTA_LDN)) Method (_STA, 0, NotSerialized) { - Return (DSTA (Zero)) + Return (DSTA (0)) } Method (_DIS, 0, NotSerialized) { - DCNT (Zero, Zero) + DCNT (0, 0) } Method (_CRS, 0, NotSerialized) { - Return (DCRS (Zero, Zero)) + Return (DCRS (0, 0)) } Method (_SRS, 1, NotSerialized) @@ -402,9 +402,9 @@ Device(SIO1) { CreateWordField (Arg0, 0x09, IRQM) ENTER_CONFIG_MODE (SUPERIO_LPC_LDN) STIO (0x6A, IO11) - SIRQ (Zero, IRQM) + SIRQ (0, IRQM) EXIT_CONFIG_MODE () - DCNT (Zero, 1) + DCNT (0, 1) } Name (_PRS, ResourceTemplate () @@ -481,12 +481,12 @@ Device(SIO1) { Method (_DIS, 0, NotSerialized) { - DCNT (1, Zero) + DCNT (1, 0) } Method (_CRS, 0, NotSerialized) { - Return (DCRS (1, Zero)) + Return (DCRS (1, 0)) } Method (_SRS, 1, NotSerialized) |