2020-11-03 11:58:35 -06:00
|
|
|
/*
|
|
|
|
* Fix up memory controller
|
|
|
|
*/
|
|
|
|
|
|
|
|
DefinitionBlock ("", "SSDT", 2, "tyler", "_DMAC", 0x00001000)
|
2019-12-19 21:33:12 -06:00
|
|
|
{
|
2020-11-03 11:58:35 -06:00
|
|
|
External (OSDW, MethodObj) // 0 Arguments
|
|
|
|
External (_SB.PCI0.LPCB, DeviceObj)
|
|
|
|
|
|
|
|
// https://github.com/daliansky/OC-little/blob/master/06-%E6%B7%BB%E5%8A%A0%E7%BC%BA%E5%A4%B1%E7%9A%84%E9%83%A8%E4%BB%B6/SSDT-DMAC.dsl
|
2019-12-19 21:33:12 -06:00
|
|
|
Scope (_SB.PCI0.LPCB)
|
|
|
|
{
|
2020-11-03 11:58:35 -06:00
|
|
|
// https://github.com/khronokernel/DarwinDumped/blob/b6d91cf4a5bdf1d4860add87cf6464839b92d5bb/MacBookPro/MacBookPro14%2C1/ACPI%20Tables/DSL/DSDT.dsl#L5044
|
|
|
|
// https://github.com/coreboot/coreboot/blob/master/src/soc/intel/common/block/acpi/acpi/lpc.asl
|
|
|
|
/* DMA Controller */
|
2019-12-19 21:33:12 -06:00
|
|
|
Device (DMAC)
|
|
|
|
{
|
2020-11-03 11:58:35 -06:00
|
|
|
Name (_HID, EISAID("PNP0200"))
|
|
|
|
|
|
|
|
Name (_CRS, ResourceTemplate()
|
2019-12-19 21:33:12 -06:00
|
|
|
{
|
2020-11-03 11:58:35 -06:00
|
|
|
IO (Decode16, 0x00, 0x00, 0x01, 0x20)
|
|
|
|
IO (Decode16, 0x81, 0x81, 0x01, 0x11)
|
|
|
|
IO (Decode16, 0x93, 0x93, 0x01, 0x0d)
|
|
|
|
IO (Decode16, 0xc0, 0xc0, 0x01, 0x20)
|
|
|
|
DMA (Compatibility, NotBusMaster, Transfer8_16) { 4 }
|
2019-12-19 21:33:12 -06:00
|
|
|
})
|
2020-11-03 11:58:35 -06:00
|
|
|
|
2019-12-19 21:33:12 -06:00
|
|
|
Method (_STA, 0, NotSerialized)
|
|
|
|
{
|
2020-11-03 11:58:35 -06:00
|
|
|
If (OSDW ())
|
2019-12-19 21:33:12 -06:00
|
|
|
{
|
|
|
|
Return (0x0F)
|
|
|
|
}
|
2020-11-03 11:58:35 -06:00
|
|
|
|
|
|
|
Return (Zero)
|
|
|
|
}
|
|
|
|
}
|
2019-12-19 21:33:12 -06:00
|
|
|
}
|
2020-11-13 16:34:50 -06:00
|
|
|
}
|