[MinnowBoard] How to make diffence between input and output pins in ACPI table?

Anteja Vuk Macek anteja.vm at dolotron.com
Thu Jul 28 07:29:34 UTC 2016


Hi,

I work with GPIO pins on MinnowBoard Max, I make GPIO driver for Windows
10. My driver read APCI table.  How I can make diffence between input and
output pins in APCI table ?



DefinitionBlock ("ACPITABL.dat", "SSDT", 1, "MSFT", "ApcGpioApp", 1)
{
Scope (\_SB)
{
//
// Test peripheral device node for MinnowBoardMax
//
Device(GPOT)
{
Name(_HID, "APCGPIO1")
Name(_CID, "APCGPIO1")
Name(_UID, 1)
Name (RBUF, ResourceTemplate ()
{

// MCSI ...
// OUTPUT pins
GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO1", 0,
ResourceConsumer, , ) { 15 } //index 0
GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO1",) {15}
GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO1", 0,
ResourceConsumer, , ) { 16 } //index 1
GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO1",) {16}

GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO1", 0,
ResourceConsumer, , ) { 18} //index 2
GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO1",) {18}

GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO1", 0,
ResourceConsumer, , ) { 24 } //index 3
GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO1",) {24}

// INPUT pins
GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO1", 0,
ResourceConsumer, , ) { 19 } //index 4
GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO1",) {19}

GpioIO(Shared, PullDefault, 0, 0, IoRestrictionNone, "\\_SB.GPO1", 0,
ResourceConsumer, , ) { 20 } //index 5
GpioInt(Edge, ActiveBoth, SharedAndWake, PullNone, 0,"\\_SB.GPO1",) {20}

})
Method(_CRS, 0x0, NotSerialized)
{
Return(RBUF)
}
}
}
}


Best regards,

TejaVM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20160728/9a09b090/attachment.html>


More information about the elinux-MinnowBoard mailing list