os02k10_mipi4lane_1080p_30fps_linear.c 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. /****************************************************************************
  2. *
  3. * The MIT License (MIT)
  4. *
  5. * Copyright (c) 2020 VeriSilicon Holdings Co., Ltd.
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a
  8. * copy of this software and associated documentation files (the "Software"),
  9. * to deal in the Software without restriction, including without limitation
  10. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11. * and/or sell copies of the Software, and to permit persons to whom the
  12. * Software is furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be included in
  15. * all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  22. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  23. * DEALINGS IN THE SOFTWARE.
  24. *
  25. *****************************************************************************
  26. *
  27. * The GPL License (GPL)
  28. *
  29. * Copyright (c) 2020 VeriSilicon Holdings Co., Ltd.
  30. *
  31. * This program is free software; you can redistribute it and/or
  32. * modify it under the terms of the GNU General Public License
  33. * as published by the Free Software Foundation; either version 2
  34. * of the License, or (at your option) any later version.
  35. *
  36. * This program is distributed in the hope that it will be useful,
  37. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39. * GNU General Public License for more details.
  40. *
  41. * You should have received a copy of the GNU General Public License
  42. * along with this program;
  43. *
  44. *****************************************************************************
  45. *
  46. * Note: This software is released under dual MIT and GPL licenses. A
  47. * recipient may use this file under the terms of either the MIT license or
  48. * GPL License. If you wish to use only one license not the other, you can
  49. * indicate your decision by deleting one of the above license notices in your
  50. * version of this file.
  51. *
  52. *****************************************************************************/
  53. #include "vvsensor.h"
  54. #include "sensor_common.h"
  55. struct vvcam_sccb_data os02k10_mipi4lane_1080p_30fps_linear_reg[] = {
  56. {0x0100,0x00},
  57. {0x302a,0x00},
  58. {0x0103,0x01},
  59. {0x0109,0x01},
  60. {0x0104,0x02},
  61. {0x0102,0x00},
  62. {0x0303,0x04},
  63. {0x0305,0x4c},
  64. {0x0306,0x00},
  65. {0x0317,0x0a},
  66. {0x0323,0x07},
  67. {0x0324,0x01},
  68. {0x0325,0xb0},
  69. {0x0327,0x07},
  70. {0x300f,0x11},
  71. {0x3012,0x21},
  72. {0x3026,0x10},
  73. {0x3027,0x08},
  74. {0x302d,0x24},
  75. {0x3106,0x10},
  76. {0x3400,0x00},
  77. {0x3406,0x08},
  78. {0x3408,0x05},
  79. {0x340c,0x05},
  80. {0x3425,0x51},
  81. {0x3426,0x10},
  82. {0x3427,0x14},
  83. {0x3428,0x50},
  84. {0x3429,0x10},
  85. {0x342a,0x10},
  86. {0x342b,0x04},
  87. {0x3504,0x08},
  88. {0x3508,0x01},
  89. {0x3509,0x00},
  90. {0x3544,0x08},
  91. {0x3548,0x01},
  92. {0x3549,0x00},
  93. {0x3584,0x08},
  94. {0x3588,0x01},
  95. {0x3589,0x00},
  96. {0x3601,0x70},
  97. {0x3604,0xe3},
  98. {0x3605,0xff},
  99. {0x3606,0x01},
  100. {0x3608,0xa8},
  101. {0x360a,0xd0},
  102. {0x360b,0x08},
  103. {0x360e,0xc8},
  104. {0x360f,0x66},
  105. {0x3610,0x81},
  106. {0x3611,0x89},
  107. {0x3612,0x4e},
  108. {0x3613,0xbd},
  109. {0x362a,0x0e},
  110. {0x362b,0x0e},
  111. {0x362c,0x0e},
  112. {0x362d,0x0e},
  113. {0x362e,0x0c},
  114. {0x362f,0x1a},
  115. {0x3630,0x32},
  116. {0x3631,0x64},
  117. {0x3638,0x00},
  118. {0x3643,0x00},
  119. {0x3644,0x00},
  120. {0x3645,0x00},
  121. {0x3646,0x00},
  122. {0x3647,0x00},
  123. {0x3648,0x00},
  124. {0x3649,0x00},
  125. {0x364a,0x04},
  126. {0x364c,0x0e},
  127. {0x364d,0x0e},
  128. {0x364e,0x0e},
  129. {0x364f,0x0e},
  130. {0x3650,0xff},
  131. {0x3651,0xff},
  132. {0x3661,0x07},
  133. {0x3662,0x00},
  134. {0x3663,0x20},
  135. {0x3665,0x12},
  136. {0x3667,0xd4},
  137. {0x3668,0x80},
  138. {0x366f,0x00},
  139. {0x3671,0x08},
  140. {0x3673,0x2a},
  141. {0x3681,0x80},
  142. {0x3700,0x26},
  143. {0x3701,0x1e},
  144. {0x3702,0x25},
  145. {0x3703,0x28},
  146. {0x3706,0xb1},
  147. {0x3707,0x0a},
  148. {0x3708,0x34},
  149. {0x3709,0x50},
  150. {0x370a,0x02},
  151. {0x370b,0x21},
  152. {0x3714,0x01},
  153. {0x371b,0x13},
  154. {0x371c,0x00},
  155. {0x371d,0x08},
  156. {0x3756,0xe7},
  157. {0x3757,0xe7},
  158. {0x3762,0x1d},
  159. {0x376c,0x00},
  160. {0x3776,0x03},
  161. {0x3777,0x22},
  162. {0x3779,0x60},
  163. {0x377c,0x48},
  164. {0x379c,0x4d},
  165. {0x3784,0x06},
  166. {0x3785,0x0a},
  167. {0x37d1,0xb1},
  168. {0x37d2,0x02},
  169. {0x37d3,0x21},
  170. {0x37d5,0xb1},
  171. {0x37d6,0x02},
  172. {0x37d7,0x21},
  173. {0x37d8,0x01},
  174. {0x37dc,0x00},
  175. {0x3790,0x10},
  176. {0x3793,0x04},
  177. {0x3794,0x07},
  178. {0x3796,0x00},
  179. {0x3797,0x02},
  180. {0x37a1,0x80},
  181. {0x37bb,0x88},
  182. {0x37be,0x01},
  183. {0x37bf,0x00},
  184. {0x37c0,0x01},
  185. {0x37c7,0x56},
  186. {0x37ca,0x21},
  187. {0x37cd,0x90},
  188. {0x37cf,0x02},
  189. {0x3800,0x00},
  190. {0x3801,0x00},
  191. {0x3802,0x00},
  192. {0x3803,0x04},
  193. {0x3804,0x07},
  194. {0x3805,0x8f},
  195. {0x3806,0x04},
  196. {0x3807,0x43},
  197. {0x3808,0x07},
  198. {0x3809,0x80},
  199. {0x380a,0x04},
  200. {0x380b,0x38},
  201. {0x380c,0x0e},
  202. {0x380d,0xc8},
  203. {0x380e,0x05},
  204. {0x380f,0xb4},
  205. {0x3811,0x08},
  206. {0x3813,0x04},
  207. {0x3814,0x01},
  208. {0x3815,0x01},
  209. {0x3816,0x01},
  210. {0x3817,0x01},
  211. {0x381c,0x00},
  212. {0x3820,0x02},
  213. {0x3821,0x00},
  214. {0x3822,0x14},
  215. {0x384c,0x04},
  216. {0x384d,0xc8},
  217. {0x3858,0x0d},
  218. {0x3865,0x00},
  219. {0x3866,0xc0},
  220. {0x3867,0x00},
  221. {0x3868,0xc0},
  222. {0x3900,0x13},
  223. {0x3940,0x13},
  224. {0x3980,0x13},
  225. {0x3c01,0x11},
  226. {0x3c05,0x00},
  227. {0x3c0f,0x1c},
  228. {0x3c12,0x0d},
  229. {0x3c19,0x01},
  230. {0x3c21,0x40},
  231. {0x3c3b,0x18},
  232. {0x3c3d,0xc9},
  233. {0x3c55,0xcb},
  234. {0x3c5d,0xec},
  235. {0x3c5e,0xec},
  236. {0x3ce0,0x00},
  237. {0x3ce1,0x00},
  238. {0x3ce2,0x00},
  239. {0x3ce3,0x00},
  240. {0x3d8c,0x70},
  241. {0x3d8d,0x10},
  242. {0x4001,0x2f},
  243. {0x4033,0x80},
  244. {0x4008,0x02},
  245. {0x4009,0x11},
  246. {0x4004,0x01},
  247. {0x4005,0x00},
  248. {0x400a,0x03},
  249. {0x400b,0x40},
  250. {0x410f,0x01},
  251. {0x402e,0x01},
  252. {0x402f,0x00},
  253. {0x4030,0x01},
  254. {0x4031,0x00},
  255. {0x4032,0x9f},
  256. {0x4050,0x00},
  257. {0x4051,0x07},
  258. {0x4288,0xcf},
  259. {0x4289,0x03},
  260. {0x428a,0x46},
  261. {0x430b,0xff},
  262. {0x430c,0xff},
  263. {0x430d,0x00},
  264. {0x430e,0x00},
  265. {0x4500,0x18},
  266. {0x4501,0x18},
  267. {0x4504,0x00},
  268. {0x4507,0x02},
  269. {0x4603,0x00},
  270. {0x4640,0x62},
  271. {0x4646,0xaa},
  272. {0x4647,0x55},
  273. {0x4648,0x99},
  274. {0x4649,0x66},
  275. {0x464d,0x00},
  276. {0x4654,0x11},
  277. {0x4655,0x22},
  278. {0x4800,0x04},
  279. {0x4810,0xff},
  280. {0x4811,0xff},
  281. {0x480e,0x00},
  282. {0x4813,0x00},
  283. {0x4837,0x0c},
  284. {0x484b,0x27},
  285. {0x4d00,0x4e},
  286. {0x4d01,0x0c},
  287. {0x4d09,0x4f},
  288. {0x5000,0x1f},
  289. {0x5080,0x00},
  290. {0x50c0,0x00},
  291. {0x5100,0x00},
  292. {0x5200,0x00},
  293. {0x5201,0x70},
  294. {0x5202,0x03},
  295. {0x5203,0x7f},
  296. {0x3501,0x01},
  297. {0x380e,0x18},
  298. {0x380f,0x18},
  299. {0x3501,0x03},
  300. {0x3502,0x74},
  301. {0x0100,0x01},
  302. };
  303. struct vvcam_sccb_array os02k10_mipi4lane_1080p_30fps_linear_arry = {
  304. .count = sizeof(os02k10_mipi4lane_1080p_30fps_linear_reg) / sizeof(struct vvcam_sccb_data),
  305. .sccb_data = os02k10_mipi4lane_1080p_30fps_linear_reg,
  306. };