summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ec/google/chromeec/acpi/ec.asl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index 8109eb3f0f..3d5961aa1b 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -177,8 +177,10 @@ Device (EC0)
*/
\PNOT ()
+#ifndef EC_ENABLE_LID_SWITCH
// Initialize LID switch state
\LIDS = LIDS
+#endif
#if CONFIG(SOC_AMD_COMMON_BLOCK_ACPI_DPTC)
/*
@@ -234,9 +236,10 @@ Device (EC0)
\_SB.DPTC()
}
#endif
- \LIDS = LIDS
#ifdef EC_ENABLE_LID_SWITCH
Notify (LID0, 0x80)
+#else
+ \LIDS = LIDS
#endif
}
@@ -249,10 +252,11 @@ Device (EC0)
\_SB.DPTC()
}
#endif
- \LIDS = LIDS
Notify (CREC, 0x2)
#ifdef EC_ENABLE_LID_SWITCH
Notify (LID0, 0x80)
+#else
+ \LIDS = LIDS
#endif
}