summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-06-12 10:01:20 -0700
committerFurquan Shaikh <furquan@google.com>2020-06-14 00:47:03 +0000
commit80c555d7a82e6b2e4b8d2e46cbd5b21220b16116 (patch)
treefc07565431c72ca69142b71e87d70fc7a6e7d818 /src/ec
parentdc6bb6cb82110a903ff56d7e816d575e8d2242e2 (diff)
ec/google/chromeec: Call \PNOT () on initializing AC power state
This change calls \PNOT () method when AC power state is initialized to allow platform code to take appropriate action. BUG=b:157752693 Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I089e9096f78728ddc5df2d8cb8f22f65b30b02dc Reviewed-on: https://review.coreboot.org/c/coreboot/+/42315 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/google/chromeec/acpi/ec.asl6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/ec.asl b/src/ec/google/chromeec/acpi/ec.asl
index 8e1d79fc8b..f8d4bdf828 100644
--- a/src/ec/google/chromeec/acpi/ec.asl
+++ b/src/ec/google/chromeec/acpi/ec.asl
@@ -147,6 +147,12 @@ Device (EC0)
{
// Initialize AC power state
Store (ACEX, \PWRS)
+ /*
+ * Inform platform code about the current AC power state.
+ * This allows the platform to take any action based on the initialized state.
+ * PWRS isn't valid before this point.
+ */
+ \PNOT ()
// Initialize LID switch state
Store (LIDS, \LIDS)