| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
|
| 3 |
/* Call from \_SB._PTS() */ |
| 4 |
Method (PTS, 1, Serialized) |
| 5 |
{ |
| 6 |
Printf ("EC _PTS") |
| 7 |
If (EREG){ |
| 8 |
W (FPTS, Arg0) |
| 9 |
} |
| 10 |
} |
| 11 |
|
| 12 |
/* Call from \_SB._WAK() */ |
| 13 |
Method (WAK, 1, Serialized) |
| 14 |
{ |
| 15 |
Printf ("EC _WAK") |
| 16 |
If (EREG){ |
| 17 |
W (FWAK, Arg0) |
| 18 |
|
| 19 |
/* Indicate to EC that OS is ready for queries */ |
| 20 |
W (ERDY, 1) |
| 21 |
|
| 22 |
/* Indicate that the OS supports S0ix */ |
| 23 |
W (CSOS, 1) |
| 24 |
|
| 25 |
/* Tell EC to stop emulating PS/2 mouse */ |
| 26 |
W (PS2M, 0) |
| 27 |
|
| 28 |
/* Enable DPTF support if enabled in devicetree */ |
| 29 |
If (\DPTE == 1) { |
| 30 |
W (DWST, 1) |
| 31 |
} |
| 32 |
} |
| 33 |
} |