summaryrefslogtreecommitdiffstats
path: root/src/mainboard/roda/rk886ex/acpi/ec.asl
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-10-04 14:57:37 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-11-04 09:43:15 +0000
commit62a437dd88742af332c4950a09f935bbf3d9812b (patch)
tree8d5f389575a3a34f0b204dd61f96bd39754c1b5a /src/mainboard/roda/rk886ex/acpi/ec.asl
parent527690c7bf6f96b52496d26223e8ac885dedf907 (diff)
downloadcoreboot-62a437dd88742af332c4950a09f935bbf3d9812b.tar.gz
coreboot-62a437dd88742af332c4950a09f935bbf3d9812b.tar.bz2
coreboot-62a437dd88742af332c4950a09f935bbf3d9812b.zip
mb/roda/rk886ex: Convert *.asl to ASL 2.0 syntax
Generated 'build/dsdt.dsl' files are identical. Change-Id: I2eea24db6cfd260e0f36243e90a5e01b360f23fb Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46012 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/mainboard/roda/rk886ex/acpi/ec.asl')
-rw-r--r--src/mainboard/roda/rk886ex/acpi/ec.asl38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/mainboard/roda/rk886ex/acpi/ec.asl b/src/mainboard/roda/rk886ex/acpi/ec.asl
index 9ec0c36234ec..9ebe4b5eac46 100644
--- a/src/mainboard/roda/rk886ex/acpi/ec.asl
+++ b/src/mainboard/roda/rk886ex/acpi/ec.asl
@@ -63,8 +63,8 @@ Device(EC0)
// This method is needed by Windows XP/2000 for
// EC initialization before a driver is loaded
- If (LEqual(Arg0, 0x03)) {
- Store (Arg1, ECON)
+ If (Arg0 == 0x03) {
+ ECON = Arg1
}
}
@@ -72,20 +72,20 @@ Device(EC0)
Method (_Q11, 0)
{
- Store("_Q11: Fn-F8 (Sleep Button) pressed", Debug)
+ Debug = "_Q11: Fn-F8 (Sleep Button) pressed"
Notify(SLPB, 0x80)
}
Method (_Q12, 0)
{
- Store("_Q12: Fn-F9 (Display Switch) pressed", Debug)
+ Debug = "_Q12: Fn-F9 (Display Switch) pressed"
Notify (\_SB.PCI0.GFX0, 0x82)
- // Store(1, TLST)
+ // TLST = 1
}
Method (_Q30, 0)
{
- Store("_Q30: AC In/Out", Debug)
+ Debug = "_Q30: AC In/Out"
Notify(ADP1, 0x80) // Tell the Power Adapter
PNOT() // and the CPU and Battery
// Notify the Batteries
@@ -95,16 +95,16 @@ Device(EC0)
Method (_Q31, 0)
{
- Store("_Q31: LID Open/Close", Debug)
+ Debug = "_Q31: LID Open/Close"
Notify(LID0, 0x80)
}
Method (_Q32, 0)
{
- Store("_Q32: Battery 1 In/Out", Debug)
+ Debug = "_Q32: Battery 1 In/Out"
If (ECON) {
- Store (P62S, Local0)
- If (Not(Local0)) {
+ Local0 = P62S
+ If (~Local0) {
Notify(BAT1, 0x80)
}
}
@@ -112,10 +112,10 @@ Device(EC0)
Method (_Q33, 0)
{
- Store("_Q33: Battery 2 In/Out", Debug)
+ Debug = "_Q33: Battery 2 In/Out"
If (ECON) {
- Store (P63S, Local0)
- If (Not(Local0)) {
+ Local0 = P63S
+ If (~Local0) {
Notify(BAT2, 0x80)
}
}
@@ -123,33 +123,33 @@ Device(EC0)
Method (_Q34, 0)
{
- Store("_Q34: LPT/FDD", Debug)
+ Debug = "_Q34: LPT/FDD"
// PHSS(0x70)
}
Method (_Q35, 0)
{
- Store("_Q35: Processor is hot", Debug)
+ Debug = "_Q35: Processor is hot"
}
Method (_Q36, 0)
{
- Store("_Q36: Thermal Warning", Debug)
+ Debug = "_Q36: Thermal Warning"
}
Method (_Q37, 0)
{
- Store("_Q37: PME", Debug)
+ Debug = "_Q37: PME"
}
Method (_Q38, 0)
{
- Store("_Q38: Thermal", Debug)
+ Debug = "_Q38: Thermal"
}
Method (_Q39, 0)
{
- Store("_Q39: Thermal", Debug)
+ Debug = "_Q39: Thermal"
}
// TODO Scope _SB devices for AC power, LID, Power button