mirror of
https://github.com/edk2-porting/edk2-msm
synced 2025-07-21 18:20:39 +00:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
Device (GIO0)
|
|
{
|
|
Name (_HID, "QCOM0217")
|
|
Alias(\_SB.PSUB, _SUB)
|
|
Name (_UID, 0)
|
|
|
|
Method (_CRS, 0x0, NotSerialized) {
|
|
Name (RBUF, ResourceTemplate ()
|
|
{
|
|
// TLMM register address space
|
|
Memory32Fixed (ReadWrite, 0x00400000, 0x00C00000)
|
|
|
|
// Summary Interrupt shared by all banks
|
|
Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, , , ) {240}
|
|
Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, , , ) {240}
|
|
Interrupt(ResourceConsumer, Level, ActiveHigh, Shared, , , ) {240}
|
|
Interrupt(ResourceConsumer, Edge, ActiveBoth, Shared, , , ) {648} // For PDC Wake up ::TLMM GPIo 126 SD Card Detection
|
|
Interrupt(ResourceConsumer, Edge, ActiveBoth, Shared, , , ) {568} // For PDC Wake up ::TLMM GPIo 54
|
|
Interrupt(ResourceConsumer, Edge, ActiveBoth, Shared, , , ) {646} // For PDC Wake up ::TLMM GPIo 124, Hall sensor used for lid
|
|
})
|
|
Return (RBUF)
|
|
}
|
|
// ACPI method to return Num pins
|
|
Method(OFNI, 0x0, NotSerialized) {
|
|
Name(RBUF, Buffer()
|
|
{
|
|
0x96, // 0: TOTAL_GPIO_PINS
|
|
0x00 // 1: TOTAL_GPIO_PINS
|
|
})
|
|
Return (RBUF)
|
|
}
|
|
|
|
Name(GABL, Zero)
|
|
Method(_REG, 0x2, NotSerialized)
|
|
{
|
|
If(LEqual(Arg0, 0x8))
|
|
{
|
|
Store(Arg1, GABL)
|
|
}
|
|
}
|
|
} |