-
Notifications
You must be signed in to change notification settings - Fork 45
/
SSDT-I2C.dsl
executable file
·71 lines (60 loc) · 2.37 KB
/
SSDT-I2C.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// By LuletterSoul
// a "GPIO Controller Enable" patch for ensuring your
// DSDT notifies the system that your device is GPIO pinned
// TPD0 is the ACPI id of trackpad
// TPL1 is the ACPI id of touchscreen
// TPD0 and TPL1 are both I2C devices in Dell XPS 9570 , specifically TPD0,
// should enable GPIO interrupts as VoodooI2C documentation requires.
DefinitionBlock ("", "SSDT", 2, "hack", "I2C", 0x00000000)
{
External (_SB_.PCI0.I2C0.TPD0, DeviceObj) // (from opcode)
External (_SB_.PCI0.I2C0.TPD0.SBFB, FieldUnitObj) // (from opcode)
External (_SB_.PCI0.I2C0.TPD0.SBFG, FieldUnitObj) // (from opcode)
External (_SB_.PCI0.I2C0.TPL1, DeviceObj) // (from opcode)
External (_SB_.PCI0.I2C0.TPL1.SBFB, FieldUnitObj) // (from opcode)
External (_SB_.PCI0.I2C0.TPL1.SBFG, FieldUnitObj) // (from opcode)
External (_SB_.PCI0.I2C0.TPL1.XCRS, MethodObj) // 0 Arguments (from opcode)
External (_SB_.PCI0.I2C1.TPD0, DeviceObj) // (from opcode)
External (_SB_.PCI0.I2C1.TPD0.SBFB, FieldUnitObj) // (from opcode)
External (_SB_.PCI0.I2C1.TPD0.SBFG, FieldUnitObj) // (from opcode)
External (_SB_.PCI0.I2C1.TPL1, DeviceObj) // (from opcode)
External (_SB_.PCI0.I2C1.TPL1.SBFB, FieldUnitObj) // (from opcode)
External (_SB_.PCI0.I2C1.TPL1.SBFG, FieldUnitObj) // (from opcode)
External (_SB_.PCI0.I2C1.TPL1.XCRS, MethodObj) // 0 Arguments (from opcode)
Scope (_SB.PCI0.I2C0.TPD0)
{
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Return (ConcatenateResTemplate (SBFB, SBFG))
}
}
Scope (_SB.PCI0.I2C0.TPL1)
{
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
If (CondRefOf (XCRS))
{
Return (XCRS ())
}
Return (ConcatenateResTemplate (SBFB, SBFG))
}
}
Scope (_SB.PCI0.I2C1.TPD0)
{
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Return (ConcatenateResTemplate (SBFB, SBFG))
}
}
Scope (_SB.PCI0.I2C1.TPL1)
{
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
If (CondRefOf (XCRS))
{
Return (XCRS ())
}
Return (ConcatenateResTemplate (SBFB, SBFG))
}
}
}