sc2210_mipi.h 15 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126
  1. #ifndef SC2210_MIPI_H_
  2. #define SC2210_MIPI_H_
  3. #define _NAME(n, s) n##_##s
  4. #if MULTI_SENSOR
  5. #define NAME(n) _NAME(n, SC2210_MIPI)
  6. #else
  7. #define NAME(n) n
  8. #endif
  9. //---------------------------1080P25-------------------------------------------------------
  10. #define FRAM_W_1080P25 1100//2200
  11. #define FRAM_H_1080P25 1350
  12. #define ACTIVE_W_1080P25 1920
  13. #define ACTIVE_H_1080P25 1080
  14. #define PIC_IN_W_1080P25 1920
  15. #define PIC_IN_H_1080P25 1080
  16. #define OFFSET_X_1080P25 0
  17. #define OFFSET_Y_1080P25 0
  18. //---------------------------1080P30-------------------------------------------------------
  19. #define FRAM_W_1080P30 1100//2200
  20. #define FRAM_H_1080P30 1125//1100
  21. #define ACTIVE_W_1080P30 1920
  22. #define ACTIVE_H_1080P30 1080//1088
  23. #define PIC_IN_W_1080P30 1920
  24. #define PIC_IN_H_1080P30 1080
  25. #define OFFSET_X_1080P30 0
  26. #define OFFSET_Y_1080P30 0
  27. //---------------------------1080P25 wdr-------------------------------------------------------
  28. #define FRAM_W_1080P25_WDR 1100//2200//2640//2529//2200
  29. #define FRAM_H_1080P25_WDR 1440//2880//2250//2700
  30. #define ACTIVE_W_1080P25_WDR 1920
  31. #define ACTIVE_H_1080P25_WDR 1080
  32. #define PIC_IN_W_1080P25_WDR 1920
  33. #define PIC_IN_H_1080P25_WDR 1080
  34. #define OFFSET_X_1080P25_WDR 0
  35. #define OFFSET_Y_1080P25_WDR 0
  36. //---------------------------1080P30 wdr-------------------------------------------------------
  37. #define FRAM_W_1080P30_WDR 1100//2200//2200
  38. #define FRAM_H_1080P30_WDR 1200//2400//2250//1250//2400//1250//2250//1125
  39. #define ACTIVE_W_1080P30_WDR 1920
  40. #define ACTIVE_H_1080P30_WDR 1080
  41. #define PIC_IN_W_1080P30_WDR 1920
  42. #define PIC_IN_H_1080P30_WDR 1080
  43. #define OFFSET_X_1080P30_WDR 0
  44. #define OFFSET_Y_1080P30_WDR 0
  45. const unsigned short Sensor_Cfg_SC2210_MIPI_1080P30_WDR[]=
  46. {
  47. 0x0103,0x01,
  48. 0x0100,0x00,
  49. 0x36e9,0x80,
  50. 0x36f9,0x80,
  51. 0x3001,0x07,
  52. 0x3002,0xc0,
  53. 0x300a,0x2c,
  54. 0x300f,0x00,
  55. 0x3018,0x33,
  56. 0x3019,0x0c,
  57. 0x301f,0x48,
  58. 0x3031,0x0a,
  59. 0x3033,0x20,
  60. 0x3038,0x22,
  61. 0x3106,0x81,
  62. 0x3201,0x04,
  63. 0x3203,0x04,
  64. 0x3204,0x07,
  65. 0x3205,0x8b,
  66. 0x3206,0x04,
  67. 0x3207,0x43,
  68. 0x320c,0x04,
  69. 0x320d,0x4c,
  70. 0x320e,0x09,
  71. 0x320f,0x60,
  72. 0x3211,0x04,
  73. 0x3213,0x04,
  74. 0x3220,0x53,
  75. 0x3231,0x02,
  76. 0x3250,0x3f,
  77. 0x3253,0x04,
  78. 0x3301,0x0c,
  79. 0x3302,0x10,
  80. 0x3304,0x58,
  81. 0x3305,0x00,
  82. 0x3306,0xb0,
  83. 0x3308,0x20,
  84. 0x3309,0x98,
  85. 0x330a,0x01,
  86. 0x330b,0x68,
  87. 0x3000,0xc0,
  88. 0x330e,0x48,
  89. 0x3314,0x92,
  90. 0x331e,0x49,
  91. 0x331f,0x89,
  92. 0x334c,0x10,
  93. 0x335d,0x60,
  94. 0x335e,0x02,
  95. 0x335f,0x06,
  96. 0x3364,0x16,
  97. 0x3366,0x92,
  98. 0x3367,0x10,
  99. 0x3368,0x04,
  100. 0x3369,0x00,
  101. 0x336a,0x00,
  102. 0x336b,0x00,
  103. 0x336d,0x03,
  104. 0x337c,0x08,
  105. 0x337d,0x0e,
  106. 0x337f,0x33,
  107. 0x3390,0x10,
  108. 0x3391,0x30,
  109. 0x3392,0x40,
  110. 0x3393,0x0c,
  111. 0x3394,0x0c,
  112. 0x3395,0x0c,
  113. 0x3396,0x0c,
  114. 0x3397,0x30,
  115. 0x3398,0x3f,
  116. 0x3399,0x30,
  117. 0x339a,0x30,
  118. 0x339b,0x30,
  119. 0x339c,0x30,
  120. 0x33a2,0x0a,
  121. 0x33b9,0x0e,
  122. 0x33e1,0x08,
  123. 0x33e2,0x18,
  124. 0x33e3,0x18,
  125. 0x33e4,0x18,
  126. 0x33e5,0x10,
  127. 0x33e6,0x06,
  128. 0x33e7,0x02,
  129. 0x33e8,0x18,
  130. 0x33e9,0x10,
  131. 0x33ea,0x0c,
  132. 0x33eb,0x10,
  133. 0x33ec,0x04,
  134. 0x33ed,0x02,
  135. 0x33ee,0xa0,
  136. 0x33ef,0x08,
  137. 0x33f4,0x18,
  138. 0x33f5,0x10,
  139. 0x33f6,0x0c,
  140. 0x33f7,0x10,
  141. 0x33f8,0x06,
  142. 0x33f9,0x02,
  143. 0x33fa,0x18,
  144. 0x33fb,0x10,
  145. 0x33fc,0x0c,
  146. 0x33fd,0x10,
  147. 0x33fe,0x04,
  148. 0x33ff,0x02,
  149. 0x360f,0x01,
  150. 0x3622,0xf7,
  151. 0x3625,0x0a,
  152. 0x3627,0x02,
  153. 0x3630,0xa2,
  154. 0x3631,0x00,
  155. 0x3632,0xd8,
  156. 0x3633,0x43,
  157. 0x3635,0x20,
  158. 0x3638,0x24,
  159. 0x363a,0x80,
  160. 0x363b,0x02,
  161. 0x363e,0x22,
  162. 0x3670,0x48,
  163. 0x3671,0xf7,
  164. 0x3672,0xf7,
  165. 0x3673,0x07,
  166. 0x367a,0x40,
  167. 0x367b,0x7f,
  168. 0x3690,0x42,
  169. 0x3691,0x43,
  170. 0x3692,0x54,
  171. 0x369c,0x40,
  172. 0x369d,0x7f,
  173. 0x36b5,0x40,
  174. 0x36b6,0x7f,
  175. 0x36c0,0x80,
  176. 0x36c1,0x9f,
  177. 0x36c2,0x9f,
  178. 0x36cc,0x20,
  179. 0x36cd,0x20,
  180. 0x36ce,0x30,
  181. 0x36d0,0x20,
  182. 0x36d1,0x40,
  183. 0x36d2,0x7f,
  184. 0x36ea,0x35,
  185. 0x36eb,0x05,
  186. 0x36ec,0x03,
  187. 0x36ed,0x04,
  188. 0x36fa,0xf5,
  189. 0x36fb,0x15,
  190. 0x36fc,0x10,
  191. 0x36fd,0x07,
  192. 0x3905,0xd8,
  193. 0x3907,0x01,
  194. 0x3908,0x11,
  195. 0x391b,0x83,
  196. 0x391f,0x00,
  197. 0x3933,0x28,
  198. 0x3934,0xa6,
  199. 0x3940,0x70,
  200. 0x3942,0x08,
  201. 0x3943,0xbc,
  202. 0x3958,0x02,
  203. 0x3959,0x04,
  204. 0x3980,0x61,
  205. 0x3987,0x0b,
  206. 0x3990,0x00,
  207. 0x3991,0x00,
  208. 0x3992,0x00,
  209. 0x3993,0x00,
  210. 0x3994,0x00,
  211. 0x3995,0x00,
  212. 0x3996,0x00,
  213. 0x3997,0x00,
  214. 0x3998,0x00,
  215. 0x3999,0x00,
  216. 0x399a,0x00,
  217. 0x399b,0x00,
  218. 0x399c,0x00,
  219. 0x399d,0x00,
  220. 0x399e,0x00,
  221. 0x399f,0x00,
  222. 0x39a0,0x00,
  223. 0x39a1,0x00,
  224. 0x39a2,0x03,
  225. 0x39a3,0x30,
  226. 0x39a4,0x03,
  227. 0x39a5,0x60,
  228. 0x39a6,0x03,
  229. 0x39a7,0xa0,
  230. 0x39a8,0x03,
  231. 0x39a9,0xb0,
  232. 0x39aa,0x00,
  233. 0x39ab,0x00,
  234. 0x39ac,0x00,
  235. 0x39ad,0x20,
  236. 0x39ae,0x00,
  237. 0x39af,0x40,
  238. 0x39b0,0x00,
  239. 0x39b1,0x60,
  240. 0x39b2,0x00,
  241. 0x39b3,0x00,
  242. 0x39b4,0x08,
  243. 0x39b5,0x14,
  244. 0x39b6,0x20,
  245. 0x39b7,0x38,
  246. 0x39b8,0x38,
  247. 0x39b9,0x20,
  248. 0x39ba,0x14,
  249. 0x39bb,0x08,
  250. 0x39bc,0x08,
  251. 0x39bd,0x10,
  252. 0x39be,0x20,
  253. 0x39bf,0x30,
  254. 0x39c0,0x30,
  255. 0x39c1,0x20,
  256. 0x39c2,0x10,
  257. 0x39c3,0x08,
  258. 0x39c4,0x00,
  259. 0x39c5,0x80,
  260. 0x39c6,0x00,
  261. 0x39c7,0x80,
  262. 0x39c8,0x00,
  263. 0x39c9,0x00,
  264. 0x39ca,0x80,
  265. 0x39cb,0x00,
  266. 0x39cc,0x00,
  267. 0x39cd,0x00,
  268. 0x39ce,0x00,
  269. 0x39cf,0x00,
  270. 0x39d0,0x00,
  271. 0x39d1,0x00,
  272. 0x39e2,0x05,
  273. 0x39e3,0xeb,
  274. 0x39e4,0x07,
  275. 0x39e5,0xb6,
  276. 0x39e6,0x00,
  277. 0x39e7,0x3a,
  278. 0x39e8,0x3f,
  279. 0x39e9,0xb7,
  280. 0x39ea,0x02,
  281. 0x39eb,0x4f,
  282. 0x39ec,0x08,
  283. 0x39ed,0x00,
  284. 0x3e00,0x00,
  285. 0x3e01,0x8c,
  286. 0x3e02,0x00,
  287. 0x3e03,0x0b,
  288. 0x3e04,0x08,
  289. 0x3e05,0xc0,
  290. 0x3e06,0x00,
  291. 0x3e07,0x80,
  292. 0x3e08,0x03,
  293. 0x3e09,0x40,
  294. 0x3e10,0x00,
  295. 0x3e11,0x80,
  296. 0x3e12,0x03,
  297. 0x3e13,0x40,
  298. 0x3e14,0x31,
  299. 0x3e1b,0x3a,
  300. 0x3e22,0x00,
  301. 0x3e23,0x00,
  302. 0x3e24,0x92,
  303. 0x3e26,0x40,
  304. 0x3f08,0x08,
  305. 0x4401,0x1a,
  306. 0x4407,0xc0,
  307. 0x4418,0x34,
  308. 0x4500,0x18,
  309. 0x4501,0xb4,
  310. 0x4503,0xc0,
  311. 0x4509,0x20,
  312. 0x4603,0x00,
  313. 0x4800,0x24,
  314. 0x4814,0x2a,
  315. 0x4837,0x14,
  316. 0x4851,0xab,
  317. 0x4853,0xf8,
  318. 0x5000,0x0e,
  319. 0x550f,0x20,
  320. 0x36e9,0x27,
  321. 0x36f9,0x33,
  322. 0x0100,0x01,
  323. };
  324. const unsigned short Sensor_Cfg_SC2210_MIPI_1080P25_WDR[]= //haven't change
  325. {
  326. 0x0103,0x01,
  327. 0x0100,0x00,
  328. 0x36e9,0x80,
  329. 0x36f9,0x80,
  330. 0x3001,0x07,
  331. 0x3002,0xc0,
  332. 0x300a,0x2c,
  333. 0x300f,0x00,
  334. 0x3018,0x33,
  335. 0x3019,0x0c,
  336. 0x301f,0x48,
  337. 0x3031,0x0a,
  338. 0x3033,0x20,
  339. 0x3038,0x22,
  340. 0x3106,0x81,
  341. 0x3201,0x04,
  342. 0x3203,0x04,
  343. 0x3204,0x07,
  344. 0x3205,0x8b,
  345. 0x3206,0x04,
  346. 0x3207,0x43,
  347. 0x320c,0x04,
  348. 0x320d,0x4c,
  349. 0x320e,0x0b,
  350. 0x320f,0x40,
  351. 0x3211,0x04,
  352. 0x3213,0x04,
  353. 0x3220,0x53,
  354. 0x3231,0x02,
  355. 0x3250,0x3f,
  356. 0x3253,0x04,
  357. 0x3301,0x0c,
  358. 0x3302,0x10,
  359. 0x3304,0x58,
  360. 0x3305,0x00,
  361. 0x3306,0xb0,
  362. 0x3308,0x20,
  363. 0x3309,0x98,
  364. 0x330a,0x01,
  365. 0x330b,0x68,
  366. 0x3000,0xc0,
  367. 0x330e,0x48,
  368. 0x3314,0x92,
  369. 0x331e,0x49,
  370. 0x331f,0x89,
  371. 0x334c,0x10,
  372. 0x335d,0x60,
  373. 0x335e,0x02,
  374. 0x335f,0x06,
  375. 0x3364,0x16,
  376. 0x3366,0x92,
  377. 0x3367,0x10,
  378. 0x3368,0x04,
  379. 0x3369,0x00,
  380. 0x336a,0x00,
  381. 0x336b,0x00,
  382. 0x336d,0x03,
  383. 0x337c,0x08,
  384. 0x337d,0x0e,
  385. 0x337f,0x33,
  386. 0x3390,0x10,
  387. 0x3391,0x30,
  388. 0x3392,0x40,
  389. 0x3393,0x0c,
  390. 0x3394,0x0c,
  391. 0x3395,0x0c,
  392. 0x3396,0x0c,
  393. 0x3397,0x30,
  394. 0x3398,0x3f,
  395. 0x3399,0x30,
  396. 0x339a,0x30,
  397. 0x339b,0x30,
  398. 0x339c,0x30,
  399. 0x33a2,0x0a,
  400. 0x33b9,0x0e,
  401. 0x33e1,0x08,
  402. 0x33e2,0x18,
  403. 0x33e3,0x18,
  404. 0x33e4,0x18,
  405. 0x33e5,0x10,
  406. 0x33e6,0x06,
  407. 0x33e7,0x02,
  408. 0x33e8,0x18,
  409. 0x33e9,0x10,
  410. 0x33ea,0x0c,
  411. 0x33eb,0x10,
  412. 0x33ec,0x04,
  413. 0x33ed,0x02,
  414. 0x33ee,0xa0,
  415. 0x33ef,0x08,
  416. 0x33f4,0x18,
  417. 0x33f5,0x10,
  418. 0x33f6,0x0c,
  419. 0x33f7,0x10,
  420. 0x33f8,0x06,
  421. 0x33f9,0x02,
  422. 0x33fa,0x18,
  423. 0x33fb,0x10,
  424. 0x33fc,0x0c,
  425. 0x33fd,0x10,
  426. 0x33fe,0x04,
  427. 0x33ff,0x02,
  428. 0x360f,0x01,
  429. 0x3622,0xf7,
  430. 0x3625,0x0a,
  431. 0x3627,0x02,
  432. 0x3630,0xa2,
  433. 0x3631,0x00,
  434. 0x3632,0xd8,
  435. 0x3633,0x43,
  436. 0x3635,0x20,
  437. 0x3638,0x24,
  438. 0x363a,0x80,
  439. 0x363b,0x02,
  440. 0x363e,0x22,
  441. 0x3670,0x48,
  442. 0x3671,0xf7,
  443. 0x3672,0xf7,
  444. 0x3673,0x07,
  445. 0x367a,0x40,
  446. 0x367b,0x7f,
  447. 0x3690,0x42,
  448. 0x3691,0x43,
  449. 0x3692,0x54,
  450. 0x369c,0x40,
  451. 0x369d,0x7f,
  452. 0x36b5,0x40,
  453. 0x36b6,0x7f,
  454. 0x36c0,0x80,
  455. 0x36c1,0x9f,
  456. 0x36c2,0x9f,
  457. 0x36cc,0x20,
  458. 0x36cd,0x20,
  459. 0x36ce,0x30,
  460. 0x36d0,0x20,
  461. 0x36d1,0x40,
  462. 0x36d2,0x7f,
  463. 0x36ea,0x35,
  464. 0x36eb,0x05,
  465. 0x36ec,0x03,
  466. 0x36ed,0x04,
  467. 0x36fa,0xf5,
  468. 0x36fb,0x15,
  469. 0x36fc,0x10,
  470. 0x36fd,0x07,
  471. 0x3905,0xd8,
  472. 0x3907,0x01,
  473. 0x3908,0x11,
  474. 0x391b,0x83,
  475. 0x391f,0x00,
  476. 0x3933,0x28,
  477. 0x3934,0xa6,
  478. 0x3940,0x70,
  479. 0x3942,0x08,
  480. 0x3943,0xbc,
  481. 0x3958,0x02,
  482. 0x3959,0x04,
  483. 0x3980,0x61,
  484. 0x3987,0x0b,
  485. 0x3990,0x00,
  486. 0x3991,0x00,
  487. 0x3992,0x00,
  488. 0x3993,0x00,
  489. 0x3994,0x00,
  490. 0x3995,0x00,
  491. 0x3996,0x00,
  492. 0x3997,0x00,
  493. 0x3998,0x00,
  494. 0x3999,0x00,
  495. 0x399a,0x00,
  496. 0x399b,0x00,
  497. 0x399c,0x00,
  498. 0x399d,0x00,
  499. 0x399e,0x00,
  500. 0x399f,0x00,
  501. 0x39a0,0x00,
  502. 0x39a1,0x00,
  503. 0x39a2,0x03,
  504. 0x39a3,0x30,
  505. 0x39a4,0x03,
  506. 0x39a5,0x60,
  507. 0x39a6,0x03,
  508. 0x39a7,0xa0,
  509. 0x39a8,0x03,
  510. 0x39a9,0xb0,
  511. 0x39aa,0x00,
  512. 0x39ab,0x00,
  513. 0x39ac,0x00,
  514. 0x39ad,0x20,
  515. 0x39ae,0x00,
  516. 0x39af,0x40,
  517. 0x39b0,0x00,
  518. 0x39b1,0x60,
  519. 0x39b2,0x00,
  520. 0x39b3,0x00,
  521. 0x39b4,0x08,
  522. 0x39b5,0x14,
  523. 0x39b6,0x20,
  524. 0x39b7,0x38,
  525. 0x39b8,0x38,
  526. 0x39b9,0x20,
  527. 0x39ba,0x14,
  528. 0x39bb,0x08,
  529. 0x39bc,0x08,
  530. 0x39bd,0x10,
  531. 0x39be,0x20,
  532. 0x39bf,0x30,
  533. 0x39c0,0x30,
  534. 0x39c1,0x20,
  535. 0x39c2,0x10,
  536. 0x39c3,0x08,
  537. 0x39c4,0x00,
  538. 0x39c5,0x80,
  539. 0x39c6,0x00,
  540. 0x39c7,0x80,
  541. 0x39c8,0x00,
  542. 0x39c9,0x00,
  543. 0x39ca,0x80,
  544. 0x39cb,0x00,
  545. 0x39cc,0x00,
  546. 0x39cd,0x00,
  547. 0x39ce,0x00,
  548. 0x39cf,0x00,
  549. 0x39d0,0x00,
  550. 0x39d1,0x00,
  551. 0x39e2,0x05,
  552. 0x39e3,0xeb,
  553. 0x39e4,0x07,
  554. 0x39e5,0xb6,
  555. 0x39e6,0x00,
  556. 0x39e7,0x3a,
  557. 0x39e8,0x3f,
  558. 0x39e9,0xb7,
  559. 0x39ea,0x02,
  560. 0x39eb,0x4f,
  561. 0x39ec,0x08,
  562. 0x39ed,0x00,
  563. 0x3e00,0x00,
  564. 0x3e01,0x8c,
  565. 0x3e02,0x00,
  566. 0x3e03,0x0b,
  567. 0x3e04,0x08,
  568. 0x3e05,0xc0,
  569. 0x3e06,0x00,
  570. 0x3e07,0x80,
  571. 0x3e08,0x03,
  572. 0x3e09,0x40,
  573. 0x3e10,0x00,
  574. 0x3e11,0x80,
  575. 0x3e12,0x03,
  576. 0x3e13,0x40,
  577. 0x3e14,0x31,
  578. 0x3e1b,0x3a,
  579. 0x3e22,0x00,
  580. 0x3e23,0x00,
  581. 0x3e24,0x92,
  582. 0x3e26,0x40,
  583. 0x3f08,0x08,
  584. 0x4401,0x1a,
  585. 0x4407,0xc0,
  586. 0x4418,0x34,
  587. 0x4500,0x18,
  588. 0x4501,0xb4,
  589. 0x4503,0xc0,
  590. 0x4509,0x20,
  591. 0x4603,0x00,
  592. 0x4800,0x24,
  593. 0x4814,0x2a,
  594. 0x4837,0x14,
  595. 0x4851,0xab,
  596. 0x4853,0xf8,
  597. 0x5000,0x0e,
  598. 0x550f,0x20,
  599. 0x36e9,0x27,
  600. 0x36f9,0x33,
  601. 0x0100,0x01,
  602. };
  603. const unsigned short Sensor_Cfg_SC2210_MIPI_1080P30[]=
  604. {
  605. 0x0103,0x01,
  606. 0x0100,0x00,
  607. 0x36e9,0x80,
  608. 0x36f9,0x80,
  609. 0x3001,0x07,
  610. 0x3002,0xc0,
  611. 0x300a,0x2c,
  612. 0x300f,0x00,
  613. 0x3018,0x33,
  614. 0x3019,0x0c,
  615. 0x301f,0x47,
  616. 0x3031,0x0a,
  617. 0x3033,0x20,
  618. 0x3038,0x22,
  619. 0x3106,0x81,
  620. 0x3201,0x04,
  621. 0x3203,0x04,
  622. 0x3204,0x07,
  623. 0x3205,0x8b,
  624. 0x3206,0x04,
  625. 0x3207,0x43,
  626. 0x320c,0x04,
  627. 0x320d,0x4c,
  628. 0x320e,0x04,
  629. 0x320f,0x65,
  630. 0x3211,0x04,
  631. 0x3213,0x04,
  632. 0x3231,0x02,
  633. 0x3253,0x04,
  634. 0x3301,0x0a,
  635. 0x3302,0x10,
  636. 0x3304,0x48,
  637. 0x3305,0x00,
  638. 0x3306,0x68,
  639. 0x3308,0x20,
  640. 0x3309,0x98,
  641. 0x330a,0x00,
  642. 0x330b,0xe8,
  643. 0x330e,0x68,
  644. 0x3314,0x92,
  645. 0x3000,0xc0,
  646. 0x331e,0x41,
  647. 0x331f,0x91,
  648. 0x334c,0x10,
  649. 0x335d,0x60,
  650. 0x335e,0x02,
  651. 0x335f,0x06,
  652. 0x3364,0x16,
  653. 0x3366,0x92,
  654. 0x3367,0x10,
  655. 0x3368,0x04,
  656. 0x3369,0x00,
  657. 0x336a,0x00,
  658. 0x336b,0x00,
  659. 0x336d,0x03,
  660. 0x337c,0x08,
  661. 0x337d,0x0e,
  662. 0x337f,0x33,
  663. 0x3390,0x10,
  664. 0x3391,0x30,
  665. 0x3392,0x40,
  666. 0x3393,0x0a,
  667. 0x3394,0x0a,
  668. 0x3395,0x0a,
  669. 0x3396,0x08,
  670. 0x3397,0x30,
  671. 0x3398,0x3f,
  672. 0x3399,0x50,
  673. 0x339a,0x50,
  674. 0x339b,0x50,
  675. 0x339c,0x50,
  676. 0x33a2,0x0a,
  677. 0x33b9,0x0e,
  678. 0x33e1,0x08,
  679. 0x33e2,0x18,
  680. 0x33e3,0x18,
  681. 0x33e4,0x18,
  682. 0x33e5,0x10,
  683. 0x33e6,0x06,
  684. 0x33e7,0x02,
  685. 0x33e8,0x18,
  686. 0x33e9,0x10,
  687. 0x33ea,0x0c,
  688. 0x33eb,0x10,
  689. 0x33ec,0x04,
  690. 0x33ed,0x02,
  691. 0x33ee,0xa0,
  692. 0x33ef,0x08,
  693. 0x33f4,0x18,
  694. 0x33f5,0x10,
  695. 0x33f6,0x0c,
  696. 0x33f7,0x10,
  697. 0x33f8,0x06,
  698. 0x33f9,0x02,
  699. 0x33fa,0x18,
  700. 0x33fb,0x10,
  701. 0x33fc,0x0c,
  702. 0x33fd,0x10,
  703. 0x33fe,0x04,
  704. 0x33ff,0x02,
  705. 0x360f,0x01,
  706. 0x3622,0xf7,
  707. 0x3625,0x0a,
  708. 0x3627,0x02,
  709. 0x3630,0xa2,
  710. 0x3631,0x00,
  711. 0x3632,0xd8,
  712. 0x3633,0x33,
  713. 0x3635,0x20,
  714. 0x3638,0x24,
  715. 0x363a,0x80,
  716. 0x363b,0x02,
  717. 0x363e,0x22,
  718. 0x3670,0x40,
  719. 0x3671,0xf7,
  720. 0x3672,0xf7,
  721. 0x3673,0x07,
  722. 0x367a,0x40,
  723. 0x367b,0x7f,
  724. 0x36b5,0x40,
  725. 0x36b6,0x7f,
  726. 0x36c0,0x80,
  727. 0x36c1,0x9f,
  728. 0x36c2,0x9f,
  729. 0x36cc,0x22,
  730. 0x36cd,0x23,
  731. 0x36ce,0x30,
  732. 0x36d0,0x20,
  733. 0x36d1,0x40,
  734. 0x36d2,0x7f,
  735. 0x36ea,0x75,
  736. 0x36eb,0x0d,
  737. 0x36ec,0x13,
  738. 0x36ed,0x24,
  739. 0x36fa,0x5f,
  740. 0x36fb,0x1b,
  741. 0x36fc,0x10,
  742. 0x36fd,0x07,
  743. 0x3905,0xd8,
  744. 0x3907,0x01,
  745. 0x3908,0x11,
  746. 0x391b,0x83,
  747. 0x391d,0x2c,
  748. 0x391f,0x00,
  749. 0x3933,0x28,
  750. 0x3934,0xa6,
  751. 0x3940,0x70,
  752. 0x3942,0x08,
  753. 0x3943,0xbc,
  754. 0x3958,0x02,
  755. 0x3959,0x04,
  756. 0x3980,0x61,
  757. 0x3987,0x0b,
  758. 0x3990,0x00,
  759. 0x3991,0x00,
  760. 0x3992,0x00,
  761. 0x3993,0x00,
  762. 0x3994,0x00,
  763. 0x3995,0x00,
  764. 0x3996,0x00,
  765. 0x3997,0x00,
  766. 0x3998,0x00,
  767. 0x3999,0x00,
  768. 0x399a,0x00,
  769. 0x399b,0x00,
  770. 0x399c,0x00,
  771. 0x399d,0x00,
  772. 0x399e,0x00,
  773. 0x399f,0x00,
  774. 0x39a0,0x00,
  775. 0x39a1,0x00,
  776. 0x39a2,0x03,
  777. 0x39a3,0x30,
  778. 0x39a4,0x03,
  779. 0x39a5,0x60,
  780. 0x39a6,0x03,
  781. 0x39a7,0xa0,
  782. 0x39a8,0x03,
  783. 0x39a9,0xb0,
  784. 0x39aa,0x00,
  785. 0x39ab,0x00,
  786. 0x39ac,0x00,
  787. 0x39ad,0x20,
  788. 0x39ae,0x00,
  789. 0x39af,0x40,
  790. 0x39b0,0x00,
  791. 0x39b1,0x60,
  792. 0x39b2,0x00,
  793. 0x39b3,0x00,
  794. 0x39b4,0x08,
  795. 0x39b5,0x14,
  796. 0x39b6,0x20,
  797. 0x39b7,0x38,
  798. 0x39b8,0x38,
  799. 0x39b9,0x20,
  800. 0x39ba,0x14,
  801. 0x39bb,0x08,
  802. 0x39bc,0x08,
  803. 0x39bd,0x10,
  804. 0x39be,0x20,
  805. 0x39bf,0x30,
  806. 0x39c0,0x30,
  807. 0x39c1,0x20,
  808. 0x39c2,0x10,
  809. 0x39c3,0x08,
  810. 0x39c4,0x00,
  811. 0x39c5,0x80,
  812. 0x39c6,0x00,
  813. 0x39c7,0x80,
  814. 0x39c8,0x00,
  815. 0x39c9,0x00,
  816. 0x39ca,0x80,
  817. 0x39cb,0x00,
  818. 0x39cc,0x00,
  819. 0x39cd,0x00,
  820. 0x39ce,0x00,
  821. 0x39cf,0x00,
  822. 0x39d0,0x00,
  823. 0x39d1,0x00,
  824. 0x39e2,0x05,
  825. 0x39e3,0xeb,
  826. 0x39e4,0x07,
  827. 0x39e5,0xb6,
  828. 0x39e6,0x00,
  829. 0x39e7,0x3a,
  830. 0x39e8,0x3f,
  831. 0x39e9,0xb7,
  832. 0x39ea,0x02,
  833. 0x39eb,0x4f,
  834. 0x39ec,0x08,
  835. 0x39ed,0x00,
  836. 0x3e01,0x46,
  837. 0x3e02,0x10,
  838. 0x3e09,0x40,
  839. 0x3e14,0x31,
  840. 0x3e1b,0x3a,
  841. 0x3e26,0x40,
  842. 0x4401,0x1a,
  843. 0x4407,0xc0,
  844. 0x4418,0x34,
  845. 0x4500,0x18,
  846. 0x4501,0xb4,
  847. 0x4509,0x20,
  848. 0x4603,0x00,
  849. 0x4800,0x24,
  850. 0x4837,0x2b,
  851. 0x5000,0x0e,
  852. 0x550f,0x20,
  853. 0x36e9,0x51,
  854. 0x36f9,0x53,
  855. 0x0100,0x01,
  856. };
  857. const unsigned short Sensor_Cfg_SC2210_MIPI_1080P25[]=
  858. {
  859. 0x0103,0x01,
  860. 0x0100,0x00,
  861. 0x36e9,0x80,
  862. 0x36f9,0x80,
  863. 0x3001,0x07,
  864. 0x3002,0xc0,
  865. 0x300a,0x2c,
  866. 0x300f,0x00,
  867. 0x3018,0x33,
  868. 0x3019,0x0c,
  869. 0x301f,0x47,
  870. 0x3031,0x0a,
  871. 0x3033,0x20,
  872. 0x3038,0x22,
  873. 0x3106,0x81,
  874. 0x3201,0x04,
  875. 0x3203,0x04,
  876. 0x3204,0x07,
  877. 0x3205,0x8b,
  878. 0x3206,0x04,
  879. 0x3207,0x43,
  880. 0x320c,0x04,
  881. 0x320d,0x4c,
  882. 0x320e,0x05,
  883. 0x320f,0x46,//25fps
  884. 0x3211,0x04,
  885. 0x3213,0x04,
  886. 0x3231,0x02,
  887. 0x3253,0x04,
  888. 0x3301,0x0a,
  889. 0x3302,0x10,
  890. 0x3304,0x48,
  891. 0x3305,0x00,
  892. 0x3306,0x68,
  893. 0x3308,0x20,
  894. 0x3309,0x98,
  895. 0x330a,0x00,
  896. 0x330b,0xe8,
  897. 0x330e,0x68,
  898. 0x3314,0x92,
  899. 0x3000,0xc0,
  900. 0x331e,0x41,
  901. 0x331f,0x91,
  902. 0x334c,0x10,
  903. 0x335d,0x60,
  904. 0x335e,0x02,
  905. 0x335f,0x06,
  906. 0x3364,0x16,
  907. 0x3366,0x92,
  908. 0x3367,0x10,
  909. 0x3368,0x04,
  910. 0x3369,0x00,
  911. 0x336a,0x00,
  912. 0x336b,0x00,
  913. 0x336d,0x03,
  914. 0x337c,0x08,
  915. 0x337d,0x0e,
  916. 0x337f,0x33,
  917. 0x3390,0x10,
  918. 0x3391,0x30,
  919. 0x3392,0x40,
  920. 0x3393,0x0a,
  921. 0x3394,0x0a,
  922. 0x3395,0x0a,
  923. 0x3396,0x08,
  924. 0x3397,0x30,
  925. 0x3398,0x3f,
  926. 0x3399,0x50,
  927. 0x339a,0x50,
  928. 0x339b,0x50,
  929. 0x339c,0x50,
  930. 0x33a2,0x0a,
  931. 0x33b9,0x0e,
  932. 0x33e1,0x08,
  933. 0x33e2,0x18,
  934. 0x33e3,0x18,
  935. 0x33e4,0x18,
  936. 0x33e5,0x10,
  937. 0x33e6,0x06,
  938. 0x33e7,0x02,
  939. 0x33e8,0x18,
  940. 0x33e9,0x10,
  941. 0x33ea,0x0c,
  942. 0x33eb,0x10,
  943. 0x33ec,0x04,
  944. 0x33ed,0x02,
  945. 0x33ee,0xa0,
  946. 0x33ef,0x08,
  947. 0x33f4,0x18,
  948. 0x33f5,0x10,
  949. 0x33f6,0x0c,
  950. 0x33f7,0x10,
  951. 0x33f8,0x06,
  952. 0x33f9,0x02,
  953. 0x33fa,0x18,
  954. 0x33fb,0x10,
  955. 0x33fc,0x0c,
  956. 0x33fd,0x10,
  957. 0x33fe,0x04,
  958. 0x33ff,0x02,
  959. 0x360f,0x01,
  960. 0x3622,0xf7,
  961. 0x3625,0x0a,
  962. 0x3627,0x02,
  963. 0x3630,0xa2,
  964. 0x3631,0x00,
  965. 0x3632,0xd8,
  966. 0x3633,0x33,
  967. 0x3635,0x20,
  968. 0x3638,0x24,
  969. 0x363a,0x80,
  970. 0x363b,0x02,
  971. 0x363e,0x22,
  972. 0x3670,0x40,
  973. 0x3671,0xf7,
  974. 0x3672,0xf7,
  975. 0x3673,0x07,
  976. 0x367a,0x40,
  977. 0x367b,0x7f,
  978. 0x36b5,0x40,
  979. 0x36b6,0x7f,
  980. 0x36c0,0x80,
  981. 0x36c1,0x9f,
  982. 0x36c2,0x9f,
  983. 0x36cc,0x22,
  984. 0x36cd,0x23,
  985. 0x36ce,0x30,
  986. 0x36d0,0x20,
  987. 0x36d1,0x40,
  988. 0x36d2,0x7f,
  989. 0x36ea,0x75,
  990. 0x36eb,0x0d,
  991. 0x36ec,0x13,
  992. 0x36ed,0x24,
  993. 0x36fa,0x5f,
  994. 0x36fb,0x1b,
  995. 0x36fc,0x10,
  996. 0x36fd,0x07,
  997. 0x3905,0xd8,
  998. 0x3907,0x01,
  999. 0x3908,0x11,
  1000. 0x391b,0x83,
  1001. 0x391d,0x2c,
  1002. 0x391f,0x00,
  1003. 0x3933,0x28,
  1004. 0x3934,0xa6,
  1005. 0x3940,0x70,
  1006. 0x3942,0x08,
  1007. 0x3943,0xbc,
  1008. 0x3958,0x02,
  1009. 0x3959,0x04,
  1010. 0x3980,0x61,
  1011. 0x3987,0x0b,
  1012. 0x3990,0x00,
  1013. 0x3991,0x00,
  1014. 0x3992,0x00,
  1015. 0x3993,0x00,
  1016. 0x3994,0x00,
  1017. 0x3995,0x00,
  1018. 0x3996,0x00,
  1019. 0x3997,0x00,
  1020. 0x3998,0x00,
  1021. 0x3999,0x00,
  1022. 0x399a,0x00,
  1023. 0x399b,0x00,
  1024. 0x399c,0x00,
  1025. 0x399d,0x00,
  1026. 0x399e,0x00,
  1027. 0x399f,0x00,
  1028. 0x39a0,0x00,
  1029. 0x39a1,0x00,
  1030. 0x39a2,0x03,
  1031. 0x39a3,0x30,
  1032. 0x39a4,0x03,
  1033. 0x39a5,0x60,
  1034. 0x39a6,0x03,
  1035. 0x39a7,0xa0,
  1036. 0x39a8,0x03,
  1037. 0x39a9,0xb0,
  1038. 0x39aa,0x00,
  1039. 0x39ab,0x00,
  1040. 0x39ac,0x00,
  1041. 0x39ad,0x20,
  1042. 0x39ae,0x00,
  1043. 0x39af,0x40,
  1044. 0x39b0,0x00,
  1045. 0x39b1,0x60,
  1046. 0x39b2,0x00,
  1047. 0x39b3,0x00,
  1048. 0x39b4,0x08,
  1049. 0x39b5,0x14,
  1050. 0x39b6,0x20,
  1051. 0x39b7,0x38,
  1052. 0x39b8,0x38,
  1053. 0x39b9,0x20,
  1054. 0x39ba,0x14,
  1055. 0x39bb,0x08,
  1056. 0x39bc,0x08,
  1057. 0x39bd,0x10,
  1058. 0x39be,0x20,
  1059. 0x39bf,0x30,
  1060. 0x39c0,0x30,
  1061. 0x39c1,0x20,
  1062. 0x39c2,0x10,
  1063. 0x39c3,0x08,
  1064. 0x39c4,0x00,
  1065. 0x39c5,0x80,
  1066. 0x39c6,0x00,
  1067. 0x39c7,0x80,
  1068. 0x39c8,0x00,
  1069. 0x39c9,0x00,
  1070. 0x39ca,0x80,
  1071. 0x39cb,0x00,
  1072. 0x39cc,0x00,
  1073. 0x39cd,0x00,
  1074. 0x39ce,0x00,
  1075. 0x39cf,0x00,
  1076. 0x39d0,0x00,
  1077. 0x39d1,0x00,
  1078. 0x39e2,0x05,
  1079. 0x39e3,0xeb,
  1080. 0x39e4,0x07,
  1081. 0x39e5,0xb6,
  1082. 0x39e6,0x00,
  1083. 0x39e7,0x3a,
  1084. 0x39e8,0x3f,
  1085. 0x39e9,0xb7,
  1086. 0x39ea,0x02,
  1087. 0x39eb,0x4f,
  1088. 0x39ec,0x08,
  1089. 0x39ed,0x00,
  1090. 0x3e01,0x46,
  1091. 0x3e02,0x10,
  1092. 0x3e09,0x40,
  1093. 0x3e14,0x31,
  1094. 0x3e1b,0x3a,
  1095. 0x3e26,0x40,
  1096. 0x4401,0x1a,
  1097. 0x4407,0xc0,
  1098. 0x4418,0x34,
  1099. 0x4500,0x18,
  1100. 0x4501,0xb4,
  1101. 0x4509,0x20,
  1102. 0x4603,0x00,
  1103. 0x4800,0x24,
  1104. 0x4837,0x2b,
  1105. 0x5000,0x0e,
  1106. 0x550f,0x20,
  1107. 0x36e9,0x51,
  1108. 0x36f9,0x53,
  1109. 0x0100,0x01,
  1110. };
  1111. unsigned int NAME(MirrorFlipBayerFormat)[4]=
  1112. {
  1113. 2,2,2,2
  1114. };
  1115. #endif /* SC2232_MIPI_H_ */