Last active
December 31, 2017 14:24
-
-
Save jdkbx/dabe0d000330dd2a04acf8d870e0e06f to your computer and use it in GitHub Desktop.
acpidump > data; acpixtract data; iasl -d dsdt.dat; vim dsdt.dsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Device (CAMC) | |
{ | |
Name (_ADR, Zero) // _ADR: Address | |
Name (_HID, "OVTI2680") // _HID: Hardware ID | |
Name (_CID, "OVTI2680") // _CID: Compatible ID | |
Name (_SUB, "INTL0000") // _SUB: Subsystem ID | |
Name (_DDN, "OV2680") // _DDN: DOS Device Name | |
Name (_UID, One) // _UID: Unique ID | |
Name (_PR0, Package (0x03) // _PR0: Power Resources for D0 | |
{ | |
P18P, | |
P28P, | |
CLK2 | |
}) | |
Name (PLDB, Package (0x01) | |
{ | |
Buffer (0x14) | |
{ | |
/* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ | |
/* 0008 */ 0x61, 0x0C, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, // a....... | |
/* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF // .... | |
} | |
}) | |
Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device | |
{ | |
Return (PLDB) /* \_SB_.PCI0.I2C1.CAMC.PLDB */ | |
} | |
Method (_STA, 0, NotSerialized) // _STA: Status | |
{ | |
If ((MCAF == Zero)) | |
{ | |
Return (0x0F) | |
} | |
Return (Zero) | |
} | |
Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings | |
{ | |
Name (WBUF, ResourceTemplate () | |
{ | |
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, | |
"\\_SB.GPO3", 0x00, ResourceConsumer, , | |
) | |
{ // Pin list | |
0x004E | |
} | |
GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly, | |
"\\_SB.GPO3", 0x00, ResourceConsumer, , | |
) | |
{ // Pin list | |
0x0055 | |
} | |
I2cSerialBusV2 (0x0010, ControllerInitiated, 0x00061A80, | |
AddressingMode7Bit, "\\_SB.PCI0.I2C1", | |
0x00, ResourceConsumer, , Exclusive, | |
) | |
}) | |
Return (WBUF) /* \_SB_.PCI0.I2C1.CAMC._CRS.WBUF */ | |
} | |
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method | |
{ | |
If ((Arg0 == ToUUID ("dc2f6c4f-045b-4f1d-97b9-882a6860a4be"))) | |
{ | |
Local0 = Package (0x12) | |
{ | |
"CamId", | |
"OV2680", | |
"CamType", | |
"1", | |
"CsiPort", | |
"0", | |
"CsiLanes", | |
"1", | |
"CsiFmt", | |
"15", | |
"CsiBayer", | |
"0", | |
"CamClk", | |
"1", | |
"Regulator1p8v", | |
"0", | |
"Regulator2p8v", | |
"0" | |
} | |
Return (Local0) | |
} | |
If ((Arg0 == ToUUID ("377ba76a-f390-4aff-ab38-9b1bf33a3015"))) | |
{ | |
Return ("OVTI2680") | |
} | |
If ((Arg0 == ToUUID ("3c62aaaa-d8e0-401a-84c3-fc05656fa28c"))) | |
{ | |
Return ("OV2680") | |
} | |
If ((Arg0 == ToUUID ("822ace8f-2814-4174-a56b-5f029fe079ee"))) | |
{ | |
Return ("12P2BA536") | |
} | |
If ((Arg0 == ToUUID ("2959512a-028c-4646-b73d-4d1b5672fad8"))) | |
{ | |
Return ("CHV_ITL_CR") | |
} | |
If ((Arg0 == ToUUID ("918ab242-c37c-450a-9d0f-f47ab97c3dea"))) | |
{ | |
Return (0x0101) | |
} | |
If ((Arg0 == ToUUID ("ea3b7bd8-e09b-4239-ad6e-ed525f3f26ab"))) | |
{ | |
Return (One) | |
} | |
If ((Arg0 == ToUUID ("b65ac492-9e30-4d60-b5b2-f497c790d9cf"))) | |
{ | |
Return (0x08) | |
} | |
If ((Arg0 == ToUUID ("e770ab0f-2644-4bab-8628-d62f1683fb9d"))) | |
{ | |
Return (Zero) | |
} | |
If ((Arg0 == ToUUID ("1ea54ab2-cd84-48cc-9dd4-7f594ec3b015"))) | |
{ | |
Return (0x02) | |
} | |
If ((Arg0 == ToUUID ("8dbe2651-70c1-4c6f-ac87-a37cb46e4af6"))) | |
{ | |
Return (One) | |
} | |
If ((Arg0 == ToUUID ("75c9a639-5c8a-4a00-9f48-a9c3b5da789f"))) | |
{ | |
Return ("default") | |
} | |
If ((Arg0 == ToUUID ("26257549-9271-4ca4-bb43-c4899d5a4881"))) | |
{ | |
If ((Arg2 == One)) | |
{ | |
Return (One) | |
} | |
If ((Arg2 == 0x02)) | |
{ | |
Return (0x01001000) | |
} | |
} | |
If ((Arg0 == ToUUID ("79234640-9e10-4fea-a5c1-b5aa8b19756f"))) | |
{ | |
If ((Arg2 == One)) | |
{ | |
Return (0x02) | |
} | |
If ((Arg2 == 0x02)) | |
{ | |
Return (0x01005501) | |
} | |
If ((Arg2 == 0x03)) | |
{ | |
Return (0x01004E00) | |
} | |
} | |
If ((Arg0 == ToUUID ("2fa9bb94-9c5d-4aeb-8e6e-27434f81e3d3"))) | |
{ | |
Return ("CHT_CR") | |
} | |
If ((Arg0 == ToUUID ("647a6ca2-8b29-49ac-8806-d58b3d2d3ef5"))) | |
{ | |
Return ("FFD") | |
} | |
If ((Arg0 == ToUUID ("a6e922a1-f7b3-4399-b56a-406ae416843b"))) | |
{ | |
Return ("CHV_CR") | |
} | |
If ((Arg0 == ToUUID ("5960313b-0ab0-4940-8840-2cafa420c015"))) | |
{ | |
Return ("INTEL") | |
} | |
If ((Arg0 == ToUUID ("f486d39f-d657-484b-84a6-42a565712b92"))) | |
{ | |
Return (Buffer (0x20) | |
{ | |
/* 0000 */ 0x01, 0x01, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, // ........ | |
/* 0008 */ 0x05, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ | |
/* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // ........ | |
/* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // ........ | |
}) | |
} | |
Return (Zero) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment