summaryrefslogtreecommitdiff
path: root/src/ec/smsc/mec1308
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-26 08:17:06 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-27 09:03:34 +0000
commitca4b587f95c0f1ed64e187511781abdfd4c7ebfb (patch)
treebc5c5a324c65b107fd6d992167168b0383a63503 /src/ec/smsc/mec1308
parentb4767ce169b202af2a9091275e30881172810fc6 (diff)
{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>
Diffstat (limited to 'src/ec/smsc/mec1308')
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl4
-rw-r--r--src/ec/smsc/mec1308/acpi/ec.asl24
2 files changed, 14 insertions, 14 deletions
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index 09f3bd51ad..5571160055 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -42,12 +42,12 @@ Device (BAT0)
Name (BSTP, Zero)
// 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
diff --git a/src/ec/smsc/mec1308/acpi/ec.asl b/src/ec/smsc/mec1308/acpi/ec.asl
index 214e89b4c0..4e8e1cd55f 100644
--- a/src/ec/smsc/mec1308/acpi/ec.asl
+++ b/src/ec/smsc/mec1308/acpi/ec.asl
@@ -64,7 +64,7 @@ Device (EC0)
\LIDS = LIDS
// Enable OS control of fan speed
- FCOS = One
+ FCOS = 1
// Force a read of CPU temperature
Local0 = CPUT
@@ -76,14 +76,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 0) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL0 = One
+ FSL0 = 1
\FLVL = 0
Notify (\_TZ.THRM, 0x81)
}
@@ -101,14 +101,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 1) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL1 = One
+ FSL1 = 1
\FLVL = 1
Notify (\_TZ.THRM, 0x81)
}
@@ -126,14 +126,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 2) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL2 = One
+ FSL2 = 1
\FLVL = 2
Notify (\_TZ.THRM, 0x81)
}
@@ -151,14 +151,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 3) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL3 = One
+ FSL3 = 1
\FLVL = 3
Notify (\_TZ.THRM, 0x81)
}
@@ -176,14 +176,14 @@ Device (EC0)
{
Method (_STA) {
If (\FLVL <= 4) {
- Return (One)
+ Return (1)
} Else {
Return (Zero)
}
}
Method (_ON) {
If (FCOS) {
- FSL4 = One
+ FSL4 = 1
\FLVL = 4
Notify (\_TZ.THRM, 0x81)
}
@@ -235,7 +235,7 @@ Device (EC0)
// AC Power Connected
Method (_Q51, 0, NotSerialized)
{
- \PWRS = One
+ \PWRS = 1
Notify (AC, 0x80)
\PNOT ()
}