From 80c555d7a82e6b2e4b8d2e46cbd5b21220b16116 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Fri, 12 Jun 2020 10:01:20 -0700 Subject: 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 Change-Id: I089e9096f78728ddc5df2d8cb8f22f65b30b02dc Reviewed-on: https://review.coreboot.org/c/coreboot/+/42315 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Raul Rangel --- src/ec/google/chromeec/acpi/ec.asl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ec/google/chromeec') 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) -- cgit v1.2.3