diff --git a/src/ec/google/wilco/acpi/ec.asl b/src/ec/google/wilco/acpi/ec.asl index 2e8432844b..806f6086d7 100644 --- a/src/ec/google/wilco/acpi/ec.asl +++ b/src/ec/google/wilco/acpi/ec.asl @@ -29,6 +29,10 @@ Device (EC0) OperationRegion (ERAM, EmbeddedControl, 0, 0xff) Method (_REG, 2) { + If (Arg1 != 1) { + Return () + } + /* Indicate region is registered */ EREG = Arg1 diff --git a/src/ec/google/wilco/acpi/platform.asl b/src/ec/google/wilco/acpi/platform.asl index f815a3533c..cd23512ef9 100644 --- a/src/ec/google/wilco/acpi/platform.asl +++ b/src/ec/google/wilco/acpi/platform.asl @@ -4,12 +4,30 @@ Method (PTS, 1, Serialized) { Printf ("EC _PTS") - W (FPTS, Arg0) + If (EREG){ + W (FPTS, Arg0) + } } /* Call from \_SB._WAK() */ Method (WAK, 1, Serialized) { Printf ("EC _WAK") - W (FWAK, Arg0) + If (EREG){ + W (FWAK, Arg0) + + /* Indicate to EC that OS is ready for queries */ + W (ERDY, 1) + + /* Indicate that the OS supports S0ix */ + W (CSOS, 1) + + /* Tell EC to stop emulating PS/2 mouse */ + W (PS2M, 0) + + /* Enable DPTF support if enabled in devicetree */ + If (\DPTE == 1) { + W (DWST, 1) + } + } }