summaryrefslogtreecommitdiffstats
path: root/src/ec/smsc
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-26 09:38:45 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-27 09:06:29 +0000
commit42efd7f593c9d270ff330d1282d9c569d1ec709a (patch)
treebccc1e9c9bb2f9aec6c76c55611f0aafdb4f6e9b /src/ec/smsc
parentfa06bcba06c5842faae797629e9f72ec28d511c0 (diff)
downloadcoreboot-42efd7f593c9d270ff330d1282d9c569d1ec709a.tar.gz
coreboot-42efd7f593c9d270ff330d1282d9c569d1ec709a.tar.bz2
coreboot-42efd7f593c9d270ff330d1282d9c569d1ec709a.zip
{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/ec/smsc')
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl6
-rw-r--r--src/ec/smsc/mec1308/acpi/ec.asl22
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 557116005557..3419c4ec630d 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -39,7 +39,7 @@ Device (BAT0)
0xFFFFFFFF, // Battery Remaining Capacity
0xFFFFFFFF, // Battery Present Voltage
})
- Name (BSTP, Zero)
+ Name (BSTP, 0)
// Workaround for full battery status, enabled by default
Name (BFWK, 1)
@@ -53,7 +53,7 @@ Device (BAT0)
// Method to disable full battery workaround
Method (BFWD)
{
- BFWK = Zero
+ BFWK = 0
}
// Swap bytes in a word
@@ -106,7 +106,7 @@ Device (BAT0)
// Get battery state from EC
Local0 = BTST
- Local1 = Zero
+ Local1 = 0
// Check if AC is present
If (ACEX) {
diff --git a/src/ec/smsc/mec1308/acpi/ec.asl b/src/ec/smsc/mec1308/acpi/ec.asl
index 4e8e1cd55fd8..a4f981333d8a 100644
--- a/src/ec/smsc/mec1308/acpi/ec.asl
+++ b/src/ec/smsc/mec1308/acpi/ec.asl
@@ -78,7 +78,7 @@ Device (EC0)
If (\FLVL <= 0) {
Return (1)
} Else {
- Return (Zero)
+ Return (0)
}
}
Method (_ON) {
@@ -90,7 +90,7 @@ Device (EC0)
}
Method (_OFF) {
If (FCOS) {
- FSL0 = Zero
+ FSL0 = 0
\FLVL = 1
Notify (\_TZ.THRM, 0x81)
}
@@ -103,7 +103,7 @@ Device (EC0)
If (\FLVL <= 1) {
Return (1)
} Else {
- Return (Zero)
+ Return (0)
}
}
Method (_ON) {
@@ -115,7 +115,7 @@ Device (EC0)
}
Method (_OFF) {
If (FCOS) {
- FSL1 = Zero
+ FSL1 = 0
\FLVL = 2
Notify (\_TZ.THRM, 0x81)
}
@@ -128,7 +128,7 @@ Device (EC0)
If (\FLVL <= 2) {
Return (1)
} Else {
- Return (Zero)
+ Return (0)
}
}
Method (_ON) {
@@ -140,7 +140,7 @@ Device (EC0)
}
Method (_OFF) {
If (FCOS) {
- FSL2 = Zero
+ FSL2 = 0
\FLVL = 3
Notify (\_TZ.THRM, 0x81)
}
@@ -153,7 +153,7 @@ Device (EC0)
If (\FLVL <= 3) {
Return (1)
} Else {
- Return (Zero)
+ Return (0)
}
}
Method (_ON) {
@@ -165,7 +165,7 @@ Device (EC0)
}
Method (_OFF) {
If (FCOS) {
- FSL3 = Zero
+ FSL3 = 0
\FLVL = 4
Notify (\_TZ.THRM, 0x81)
}
@@ -178,7 +178,7 @@ Device (EC0)
If (\FLVL <= 4) {
Return (1)
} Else {
- Return (Zero)
+ Return (0)
}
}
Method (_ON) {
@@ -190,7 +190,7 @@ Device (EC0)
}
Method (_OFF) {
If (FCOS) {
- FSL4 = Zero
+ FSL4 = 0
\FLVL = 5
Notify (\_TZ.THRM, 0x81)
}
@@ -243,7 +243,7 @@ Device (EC0)
// AC Power Removed
Method (_Q52, 0, NotSerialized)
{
- \PWRS = Zero
+ \PWRS = 0
Notify (AC, 0x80)
\PNOT ()
}