mirror of
https://github.com/edk2-porting/edk2-msm
synced 2025-05-20 18:07:59 +00:00
79 lines
2.6 KiB
C
79 lines
2.6 KiB
C
Device (TSC1)
|
|
{
|
|
Name (_HID, "MSHW1003") // _HID: Hardware ID
|
|
Name (_UID, One) // _UID: Unique ID
|
|
Name (_DEP, Package (0x03) // _DEP: Dependencies
|
|
{
|
|
PEP0,
|
|
GIO0,
|
|
I2C5
|
|
})
|
|
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
|
|
{
|
|
Name (RBUF, ResourceTemplate ()
|
|
{
|
|
I2cSerialBusV2 (0x0020, ControllerInitiated, 0x00061A80,
|
|
AddressingMode7Bit, "\\_SB.I2C5",
|
|
0x00, ResourceConsumer, , Exclusive,
|
|
)
|
|
GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullUp, 0x0000,
|
|
"\\_SB.GIO0", 0x00, ResourceConsumer, ,
|
|
)
|
|
{ // Pin list
|
|
0x007D
|
|
}
|
|
GpioIo (Exclusive, PullNone, 0x0000, 0x0000, IoRestrictionNone,
|
|
"\\_SB.GIO0", 0x00, ResourceConsumer, ,
|
|
)
|
|
{ // Pin list
|
|
0x0059
|
|
}
|
|
})
|
|
Return (RBUF) /* \_SB_.TSC1._CRS.RBUF */
|
|
}
|
|
|
|
Name (PGID, Buffer (0x0A)
|
|
{
|
|
"\\_SB.TSC1"
|
|
})
|
|
Name (DBUF, Buffer (DBFL){})
|
|
CreateByteField (DBUF, Zero, STAT)
|
|
CreateByteField (DBUF, 0x02, DVAL)
|
|
CreateField (DBUF, 0x18, 0xA0, DEID)
|
|
Method (_S1D, 0, NotSerialized) // _S1D: S1 Device State
|
|
{
|
|
Return (0x03)
|
|
}
|
|
|
|
Method (_S2D, 0, NotSerialized) // _S2D: S2 Device State
|
|
{
|
|
Return (0x03)
|
|
}
|
|
|
|
Method (_S3D, 0, NotSerialized) // _S3D: S3 Device State
|
|
{
|
|
Return (0x03)
|
|
}
|
|
|
|
Method (_PS0, 0, NotSerialized) // _PS0: Power State 0
|
|
{
|
|
DEID = Buffer (ESNL){}
|
|
DVAL = Zero
|
|
DEID = PGID /* \_SB_.TSC1.PGID */
|
|
If (^^ABD.AVBL)
|
|
{
|
|
^^PEP0.FLD0 = DBUF /* \_SB_.TSC1.DBUF */
|
|
}
|
|
}
|
|
|
|
Method (_PS3, 0, NotSerialized) // _PS3: Power State 3
|
|
{
|
|
DEID = Buffer (ESNL){}
|
|
DVAL = 0x03
|
|
DEID = PGID /* \_SB_.TSC1.PGID */
|
|
If (^^ABD.AVBL)
|
|
{
|
|
^^PEP0.FLD0 = DBUF /* \_SB_.TSC1.DBUF */
|
|
}
|
|
}
|
|
} |