How to edit ACPI table

Hello Experts
I have to add support for USB OTG(usb device) on win10/win 10 IoT Core. How can I add this in the existing ACPI table.?
From the Intel datasheet I got the below snippet to be added in the ACPI table. How can I do this?
//
// USB On-The-Go
//
Device(OTGA) {
Name (_HID, “80865AAA”)
Name (_CID, “80865AAA”)
Name (_DDN, “Intel(R) USB OTG Controller – 80865AAA”)
Name (_UID, 1)
Method (_STA, 0x0, NotSerialized)
{
If (LEqual(OTGD, 0))
{
Return (0xF) // Enabled
}
Return (0x0) // Disabled
}
Method (_CRS, 0x0, NotSerialized)
{
Name (RBUF, ResourceTemplate ()
{
Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0) // MMIO 1 - OTG MMIO
Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR1) // MMIO 2 - Shadowed PCI Config Space
Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {13} // OTG IRQ
})
Return (RBUF)
}
} // End “USB On-The-Go”

Thank you & Regards
Lokesh

The answer depends on whether you the OEM/IHV who’s responsible for building this system and providing the BIOS. In other words, do you “own” the BIOS code?

If not… there’s really no good way to do this and productize the result.

If you are… then it’s simply a matter of editing the BIOS source code to add whatever it is that you want to add. We can help you with that, if that’s what you’re asking.

Peter

1 Like

Hello Peter
Thank you for the response. We check with BIOS vendor to add the stuff.

you can try to follow this example:
https://github.com/amykatenicho/DataCultureSeries/blob/master/IoT%20Track/1.BlinkyAndTheCloud/samples-develop/samples-develop/DriverSamples/gpiokmdfdemo/asl/gpiokmdfdemo.asl

you need to create a ACPITABL.dat and copy it to system32.
this will cause Windows to load the ACPI addition.

you need to create a ACPITABL.dat and copy it to system32.

Well, maybe. Did you read the rest of this thread before you posted your reply?

What you suggest will work for a development scenario only, with /TESTSIGNING ON. You can’t productize ACPITABL.dat mods, without the help of your OEM. That’s why I asked the OP what he was trying to accomplish, before steering him in the direction of generating his own ACPITABL.dat.

I think the OP was all set, about a month ago, according to his last reply.

Peter