Debian Codegraph @

src/mainboard/facebook/monolith/acpi/ec.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /*
4 * We only use the ERAM region to retrieve the CPU temperature. Otherwise the EC is not enabled
5 * The _GPE is pointing to the correct pin but the EC events are not enabled in coreboot or the
6 * EC.
7 */
8
9 Device (EC0)
10 {
11 Name (_HID, EisaId ("PNP0C09"))
12 Name (_UID, 0)
13 Name (_GPE, GPE0_DW0_22)
14
15 Name (_CRS, ResourceTemplate () {
16 IO (Decode16, 0x62, 0x62, 0, 1)
17 IO (Decode16, 0x66, 0x66, 0, 1)
18 })
19
20 Method (_STA, 0, NotSerialized)
21 {
22 Return (0x0F)
23 }
24
25 Method (_REG, 2, NotSerialized)
26 {
27 }
28
29 OperationRegion (ERAM, EmbeddedControl, 0x00, 0xFF)
30 Field (ERAM, ByteAcc, NoLock, Preserve)
31 {
32 CPUT, 8,
33 }
34
35 Method (TSRD, 1, Serialized)
36 {
37 /* Prevent iasl remarks about unused parameters */
38 Local0 = Arg0
39 Arg0 = Local0
40 Return (\_SB.DPTF.CTOK (CPUT))
41 }
42
43 /* Set Aux Trip Point 0 */
44 Method (PAT0, 2, Serialized)
45 {
46 /* Prevent iasl remarks about unused parameters */
47 Local0 = Arg0
48 Arg0 = Local0
49 Local0 = Arg1
50 Arg1 = Local0
51 }
52
53 /* Set Aux Trip Point 1 */
54 Method (PAT1, 2, Serialized)
55 {
56 /* Prevent iasl remarks about unused parameters */
57 Local0 = Arg0
58 Arg0 = Local0
59 Local0 = Arg1
60 Arg1 = Local0
61 }
62
63 /* Disable Aux Trip Point */
64 Method (PATD, 1, Serialized)
65 {
66 /* Prevent iasl remarks about unused parameters */
67 Local0 = Arg0
68 Arg0 = Local0
69 }
70 }