Advertisement
Guest User

ov5648 dsdt - lenovo miix 310

a guest
Sep 3rd, 2017
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Device (CA00)
  2. {
  3. Name (_ADR, Zero) // _ADR: Address
  4. Name (_HID, "INT5648") // _HID: Hardware ID
  5. Name (_CID, "INT5648") // _CID: Compatible ID
  6. Name (_SUB, "INTL0000") // _SUB: Subsystem ID
  7. Name (_DDN, "ov5648") // _DDN: DOS Device Name
  8. Name (_UID, One) // _UID: Unique ID
  9. Name (_PR0, Package (0x03) // _PR0: Power Resources for D0
  10. {
  11. P28P,
  12. P18P,
  13. CLK4
  14. })
  15. Name (PLDB, Package (0x01)
  16. {
  17. Buffer (0x14)
  18. {
  19. /* 0000 */ 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */
  20. /* 0008 */ 0x69, 0x0C, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, /* i....... */
  21. /* 0010 */ 0xFF, 0xFF, 0xFF, 0xFF /* .... */
  22. }
  23. })
  24. Method (_PLD, 0, Serialized) // _PLD: Physical Location of Device
  25. {
  26. Return (PLDB) /* \_SB_.PCI0.I2C1.CA00.PLDB */
  27. }
  28.  
  29. Method (_STA, 0, NotSerialized) // _STA: Status
  30. {
  31. Return (0x0F)
  32. If ((MCAR == One))
  33. {
  34. Return (0x0F)
  35. }
  36.  
  37. Return (Zero)
  38. }
  39.  
  40. Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings
  41. {
  42. Name (WBUF, ResourceTemplate ()
  43. {
  44. GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
  45. "\\_SB.GPO1", 0x00, ResourceConsumer, ,
  46. )
  47. { // Pin list
  48. 0x0037
  49. }
  50. GpioIo (Exclusive, PullDefault, 0x0000, 0x0000, IoRestrictionOutputOnly,
  51. "\\_SB.GPO1", 0x00, ResourceConsumer, ,
  52. )
  53. { // Pin list
  54. 0x002F
  55. }
  56. I2cSerialBus (0x0036, ControllerInitiated, 0x00061A80,
  57. AddressingMode7Bit, "\\_SB.PCI0.I2C1",
  58. 0x00, ResourceConsumer, ,
  59. )
  60. I2cSerialBus (0x000C, ControllerInitiated, 0x00061A80,
  61. AddressingMode7Bit, "\\_SB.PCI0.I2C1",
  62. 0x00, ResourceConsumer, ,
  63. )
  64. })
  65. Return (WBUF) /* \_SB_.PCI0.I2C1.CA00._CRS.WBUF */
  66. }
  67.  
  68. Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
  69. {
  70. If ((Arg0 == ToUUID ("dc2f6c4f-045b-4f1d-97b9-882a6860a4be")))
  71. {
  72. Local0 = Package (0x12)
  73. {
  74. "CamId",
  75. "ov5648",
  76. "CamType",
  77. "1",
  78. "CsiPort",
  79. "1",
  80. "CsiLanes",
  81. "2",
  82. "CsiFmt",
  83. "15",
  84. "CsiBayer",
  85. "2",
  86. "CamClk",
  87. "0",
  88. "Regulator1p8v",
  89. "0",
  90. "Regulator2p8v",
  91. "0"
  92. }
  93. Return (Local0)
  94. }
  95.  
  96. If ((Arg0 == ToUUID ("377ba76a-f390-4aff-ab38-9b1bf33a3015")))
  97. {
  98. Return ("INT5648")
  99. }
  100.  
  101. If ((Arg0 == ToUUID ("3c62aaaa-d8e0-401a-84c3-fc05656fa28c")))
  102. {
  103. Return ("default")
  104. }
  105.  
  106. If ((Arg0 == ToUUID ("822ace8f-2814-4174-a56b-5f029fe079ee")))
  107. {
  108. Return ("MTD5648")
  109. }
  110.  
  111. If ((Arg0 == ToUUID ("2959512a-028c-4646-b73d-4d1b5672fad8")))
  112. {
  113. Return ("CHV_ITL_CR")
  114. }
  115.  
  116. If ((Arg0 == ToUUID ("918ab242-c37c-450a-9d0f-f47ab97c3dea")))
  117. {
  118. Return (0x0102)
  119. }
  120.  
  121. If ((Arg0 == ToUUID ("ea3b7bd8-e09b-4239-ad6e-ed525f3f26ab")))
  122. {
  123. Return (Zero)
  124. }
  125.  
  126. If ((Arg0 == ToUUID ("b65ac492-9e30-4d60-b5b2-f497c790d9cf")))
  127. {
  128. Return (Zero)
  129. }
  130.  
  131. If ((Arg0 == ToUUID ("e770ab0f-2644-4bab-8628-d62f1683fb9d")))
  132. {
  133. Return (Zero)
  134. }
  135.  
  136. If ((Arg0 == ToUUID ("1ea54ab2-cd84-48cc-9dd4-7f594ec3b015")))
  137. {
  138. Return (0x02)
  139. }
  140.  
  141. If ((Arg0 == ToUUID ("8dbe2651-70c1-4c6f-ac87-a37cb46e4af6")))
  142. {
  143. Return (Zero)
  144. }
  145.  
  146. If ((Arg0 == ToUUID ("75c9a639-5c8a-4a00-9f48-a9c3b5da789f")))
  147. {
  148. Return ("DW9714")
  149. }
  150.  
  151. If ((Arg0 == ToUUID ("26257549-9271-4ca4-bb43-c4899d5a4881")))
  152. {
  153. If ((Arg2 == One))
  154. {
  155. Return (0x02)
  156. }
  157.  
  158. If ((Arg2 == 0x02))
  159. {
  160. Return (0x01003600)
  161. }
  162.  
  163. If ((Arg2 == 0x03))
  164. {
  165. Return (0x01000C01)
  166. }
  167. }
  168.  
  169. If ((Arg0 == ToUUID ("79234640-9e10-4fea-a5c1-b5aa8b19756f")))
  170. {
  171. If ((Arg2 == One))
  172. {
  173. Return (0x02)
  174. }
  175.  
  176. If ((Arg2 == 0x02))
  177. {
  178. Return (0x01003700)
  179. }
  180.  
  181. If ((Arg2 == 0x03))
  182. {
  183. Return (0x01002F01)
  184. }
  185. }
  186.  
  187. If ((Arg0 == ToUUID ("2fa9bb94-9c5d-4aeb-8e6e-27434f81e3d3")))
  188. {
  189. Return ("CHT_CR")
  190. }
  191.  
  192. If ((Arg0 == ToUUID ("647a6ca2-8b29-49ac-8806-d58b3d2d3ef5")))
  193. {
  194. Return ("FFD")
  195. }
  196.  
  197. If ((Arg0 == ToUUID ("a6e922a1-f7b3-4399-b56a-406ae416843b")))
  198. {
  199. Return ("CHV_CR")
  200. }
  201.  
  202. If ((Arg0 == ToUUID ("5960313b-0ab0-4940-8840-2cafa420c015")))
  203. {
  204. Return ("INTEL")
  205. }
  206.  
  207. If ((Arg0 == ToUUID ("f486d39f-d657-484b-84a6-42a565712b92")))
  208. {
  209. Return (Buffer (0x20)
  210. {
  211. /* 0000 */ 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */
  212. /* 0008 */ 0x05, 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */
  213. /* 0010 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ........ */
  214. /* 0018 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* ........ */
  215. })
  216. }
  217.  
  218. Return (Zero)
  219. }
  220. }
Advertisement
RAW Paste Data Copied
Advertisement