summaryrefslogtreecommitdiff
path: root/src/ec/google/wilco
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/google/wilco')
-rw-r--r--src/ec/google/wilco/acpi/ec.asl3
-rw-r--r--src/ec/google/wilco/acpi/event.asl2
-rw-r--r--src/ec/google/wilco/acpi/lid.asl5
3 files changed, 7 insertions, 3 deletions
diff --git a/src/ec/google/wilco/acpi/ec.asl b/src/ec/google/wilco/acpi/ec.asl
index 8fcd0dd5c2..fddd730258 100644
--- a/src/ec/google/wilco/acpi/ec.asl
+++ b/src/ec/google/wilco/acpi/ec.asl
@@ -60,6 +60,9 @@ Device (EC0)
/* Initialize UCSI */
^UCSI.INIT ()
+
+ // Initialize LID switch state
+ Store (R (P1LC), \LIDS)
}
/*
diff --git a/src/ec/google/wilco/acpi/event.asl b/src/ec/google/wilco/acpi/event.asl
index f6534d3773..8f6a12333d 100644
--- a/src/ec/google/wilco/acpi/event.asl
+++ b/src/ec/google/wilco/acpi/event.asl
@@ -57,7 +57,7 @@ Method (ECQ1, 1, Serialized)
/* LID state changed */
If (EBIT (E1LD, Arg0)) {
Printf ("Lid State Changed")
- Notify (^LID, 0x80)
+ Notify (^LID0, 0x80)
}
/* Power Event */
diff --git a/src/ec/google/wilco/acpi/lid.asl b/src/ec/google/wilco/acpi/lid.asl
index 818e1355c0..1697e1da5a 100644
--- a/src/ec/google/wilco/acpi/lid.asl
+++ b/src/ec/google/wilco/acpi/lid.asl
@@ -14,7 +14,7 @@
* GNU General Public License for more details.
*/
-Device (LID)
+Device (LID0)
{
Name (_HID, EisaId ("PNP0C0D"))
Name (_UID, 1)
@@ -22,6 +22,7 @@ Device (LID)
Method (_LID, 0, NotSerialized)
{
- Return (R (P1LC))
+ Store (R (P1LC), \LIDS)
+ Return (\LIDS)
}
}