Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Device (CA00)
- {
- Name (_ADR, Zero) // _ADR: Address
- Name (_HID, "INT5648") // _HID: Hardware ID
- Name (_CID, "INT5648") // _CID: Compatible ID
- Name (_SUB, "INTL0000") // _SUB: Subsystem ID
- Name (_DDN, "ov5648") // _DDN: DOS Device Name
- Name (_UID, One) // _UID: Unique ID
- Name (_PR0, Package (0x03) // _PR0: Power Resources for D0
- {
- P28P,
- P18P,
- CLK4
- })
- Name (PLDB, Package (0x01)
- {
- Buffer (0x14)
- {
- /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */
- /* 0008 */ 0x69, 0x0C, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, /* i....... */
- /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF /* .... */
- }
- })
- Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
- {
- Return (PLDB) /* \_SB_.PCI0.I2C1.CA00.PLDB */
- }
- Method (_STA, 0, NotSerialized) // _STA: Status
- {
- Return (0x0F)
- If ((MCAR == One))
- {
- Return (0x0F)
- }
- Return (Zero)
- }
- Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
- {
- Name (WBUF, ResourceTemplate ()
- {
- GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.GPO1", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x0037
- }
- GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
- "\\_SB.GPO1", 0x00, ResourceConsumer, ,
- )
- { // Pin list
- 0x002F
- }
- I2cSerialBus (0x0036, ControllerInitiated, 0x00061A80,
- AddressingMode7Bit, "\\_SB.PCI0.I2C1",
- 0x00, ResourceConsumer, ,
- )
- I2cSerialBus (0x000C, ControllerInitiated, 0x00061A80,
- AddressingMode7Bit, "\\_SB.PCI0.I2C1",
- 0x00, ResourceConsumer, ,
- )
- })
- Return (WBUF) /* \_SB_.PCI0.I2C1.CA00._CRS.WBUF */
- }
- Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
- {
- If ((Arg0 == ToUUID ("dc2f6c4f-045b-4f1d-97b9-882a6860a4be")))
- {
- Local0 = Package (0x12)
- {
- "CamId",
- "ov5648",
- "CamType",
- "1",
- "CsiPort",
- "1",
- "CsiLanes",
- "2",
- "CsiFmt",
- "15",
- "CsiBayer",
- "2",
- "CamClk",
- "0",
- "Regulator1p8v",
- "0",
- "Regulator2p8v",
- "0"
- }
- Return (Local0)
- }
- If ((Arg0 == ToUUID ("377ba76a-f390-4aff-ab38-9b1bf33a3015")))
- {
- Return ("INT5648")
- }
- If ((Arg0 == ToUUID ("3c62aaaa-d8e0-401a-84c3-fc05656fa28c")))
- {
- Return ("default")
- }
- If ((Arg0 == ToUUID ("822ace8f-2814-4174-a56b-5f029fe079ee")))
- {
- Return ("MTD5648")
- }
- If ((Arg0 == ToUUID ("2959512a-028c-4646-b73d-4d1b5672fad8")))
- {
- Return ("CHV_ITL_CR")
- }
- If ((Arg0 == ToUUID ("918ab242-c37c-450a-9d0f-f47ab97c3dea")))
- {
- Return (0x0102)
- }
- If ((Arg0 == ToUUID ("ea3b7bd8-e09b-4239-ad6e-ed525f3f26ab")))
- {
- Return (Zero)
- }
- If ((Arg0 == ToUUID ("b65ac492-9e30-4d60-b5b2-f497c790d9cf")))
- {
- Return (Zero)
- }
- 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 (Zero)
- }
- If ((Arg0 == ToUUID ("75c9a639-5c8a-4a00-9f48-a9c3b5da789f")))
- {
- Return ("DW9714")
- }
- If ((Arg0 == ToUUID ("26257549-9271-4ca4-bb43-c4899d5a4881")))
- {
- If ((Arg2 == One))
- {
- Return (0x02)
- }
- If ((Arg2 == 0x02))
- {
- Return (0x01003600)
- }
- If ((Arg2 == 0x03))
- {
- Return (0x01000C01)
- }
- }
- If ((Arg0 == ToUUID ("79234640-9e10-4fea-a5c1-b5aa8b19756f")))
- {
- If ((Arg2 == One))
- {
- Return (0x02)
- }
- If ((Arg2 == 0x02))
- {
- Return (0x01003700)
- }
- If ((Arg2 == 0x03))
- {
- Return (0x01002F01)
- }
- }
- 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, 0x00, 0x02, 0x00, 0x00, 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)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement