{superio,ec}/acpi: Replace constant "One" with actual number

Change-Id: I5c77b6d1e1dc1134f62dcb3e93df01dc9c2f386c
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71520
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer
2022-12-26 08:17:06 +01:00
parent b4767ce169
commit ca4b587f95
37 changed files with 154 additions and 154 deletions

View File

@@ -205,7 +205,7 @@ Device (EC0)
Method (_Q10, 0, NotSerialized)
{
Printf ("AC Insertion Event 0x10")
\PWRS = One
\PWRS = 1
Notify (AC, 0x80)
Notify (BATX, 0x80)
\PNOT ()

View File

@@ -44,12 +44,12 @@ Device (BATX)
})
// Workaround for full battery status, enabled by default
Name (BFWK, One)
Name (BFWK, 1)
// Method to enable full battery workaround
Method (BFWE)
{
BFWK = One
BFWK = 1
}
// Method to disable full battery workaround
@@ -97,7 +97,7 @@ Device (BATX)
//
// Information ID 1 -
//
HIID = One
HIID = 1
WAEC ()
//
@@ -106,7 +106,7 @@ Device (BATX)
// ACPI spec : 0 - mWh : 1 - mAh
//
Local7 = SBCM
PBIF[0] = Local7 ^ One
PBIF[0] = Local7 ^ 1
//
// Information ID 0 -
@@ -224,7 +224,7 @@ Device (BATX)
{
if (HB0S & 0x40)
{
Local0 = One
Local0 = 1
}
Else
{
@@ -249,7 +249,7 @@ Device (BATX)
Else
{
// Always discharging when on battery power
Local1 = One
Local1 = 1
}
// Flag if the battery level is critical
@@ -282,7 +282,7 @@ Device (BATX)
}
}
Local6 = DerefOf (PBIF[0]) ^ One
Local6 = DerefOf (PBIF[0]) ^ 1
If (Local6)
{

View File

@@ -550,7 +550,7 @@ Device (EC0)
\LIDS = ~HPLD
// Enable OS control of fan speed
// TODO FCOS = One
// TODO FCOS = 1
// Force a read of CPU temperature
// TODO Which temperature corresponds to the CPU?
@@ -593,7 +593,7 @@ Device (EC0)
// AC Power Connected
Method (_Q26, 0, NotSerialized)
{
\PWRS = One
\PWRS = 1
Notify (AC, 0x80)
Notify (BATX, 0x80)
\PNOT ()
@@ -610,7 +610,7 @@ Device (EC0)
// LID Open
Method (_Q2A)
{
\LIDS = One
\LIDS = 1
Notify (\_SB.LID0, 0x80)
}