- Joined
- Dec 10, 2016
- Messages
- 143
- Motherboard
- Dell Inspiron 7559-1.0.1-Clover
- CPU
- i5-6300HQ
- Graphics
- HD 530 GTX 960M,1920x1080
- Mac
- Mobile Phone
Have recreate Hotpatch file, but not work. seems like rename patches wrong.you can also search for TPD1 for example:
Code:Device (TPD1) { Name (HID2, Zero) Name (SBFB, ResourceTemplate () { I2cSerialBusV2 (0x0015, ControllerInitiated, 0x00061A80, AddressingMode7Bit, "\\_SB.PCI0.I2C0", 0x00, ResourceConsumer, , Exclusive, ) }) Name (SBFI, ResourceTemplate () { Interrupt (ResourceConsumer, Level, ActiveLow, ExclusiveAndWake, ,, _Y25) { 0x00000000, } }) Name (SBFG, ResourceTemplate () { GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x0000, "\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, , ) { // Pin list 0x0000 } }) CreateWordField (SBFG, 0x17, INT1) CreateDWordField (SBFI, \_SB.PCI0.I2C0.TPD1._Y25._INT, INT2) // _INT: Interrupts
I have done the SSDT file as this
Code:
DefinitionBlock ("", "SSDT", 2, "hack", "TPD1", 0x00000000)
{
External (_SB_.PCI0.GPI0, DeviceObj) // (from opcode)
External (_SB_.PCI0.I2C0.TPD1, DeviceObj) // (from opcode)
Scope (_SB.PCI0.I2C0.TPD1)
{
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
{
Name (SBFG, ResourceTemplate ()
{
GpioInt (Level, ActiveLow, ExclusiveAndWake, PullDefault, 0x0000,
"\\_SB.PCI0.GPI0", 0x00, ResourceConsumer, ,
)
{ // Pin list
0x001B
}
})
Name (SBFB, ResourceTemplate ()
{
I2cSerialBusV2 (0x0015, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PCI0.I2C0",
0x00, ResourceConsumer, , Exclusive,
)
})
Return (ConcatenateResTemplate (SBFB, SBFG))
}
}
}
Code:
<dict>
<key>Comment</key>
<string>_CRS rename to XCRS</string>
<key>Disabled</key>
<false/>
<key>Find</key>
<data>
X0NSUw==
</data>
<key>Replace</key>
<data>
WENSUw==
</data>
<key>TgtBridge</key>
<data>
VFBEMQ==
</data>
</dict>
Code:
Method (XCRS, 0, NotSerialized)
{
If (LLess (OSYS, 0x07DC))
{
Return (SBFI)
}
If (LEqual (SDM0, Zero))
{
Return (ConcatenateResTemplate (SBFB, SBFG))
}
Return (ConcatenateResTemplate (SBFB, SBFI))
}