ov5640cfg.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698
  1. /* Copyright 2018 Canaan Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License"},
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. #ifndef _OV5640CFG_H
  16. #define _OV5640CFG_H
  17. #include "drv_ov5640.h"
  18. #if 1
  19. const uint16_t ov5640_init_reg_tbl[][2]=
  20. {
  21. // 24MHz input clock, 24MHz PCLK
  22. {0x3008, 0x42}, // software power down, bit[6]
  23. {0x3103, 0x03}, // system clock from PLL, bit[1]
  24. {0x3017, 0xff}, // FREX, Vsync, HREF, PCLK, D[9:6] output enable
  25. {0x3018, 0xff}, // D[5:0], GPIO[1:0] output enable
  26. {0x3034, 0x1a}, // MIPI 10-bit
  27. {0x3035, 0x41},//0x41, // PLL
  28. {0x3036, 0x90}, // PLL
  29. {0x3037, 0x13},//0x13, // PLL root divider, bit[4], PLL pre-divider, bit[3:0]
  30. {0x3108, 0x01}, // PCLK root divider, bit[5:4], SCLK2x root divider, bit[3:2], SCLK root divider, bit[1:0]
  31. {0x3630, 0x36},
  32. {0x3631, 0x0e},
  33. {0x3632, 0xe2},
  34. {0x3633, 0x12},
  35. {0x3621, 0xe0},
  36. {0x3704, 0xa0},
  37. {0x3703, 0x5a},
  38. {0x3715, 0x78},
  39. {0x3717, 0x01},
  40. {0x370b, 0x60},
  41. {0x3705, 0x1a},
  42. {0x3905, 0x02},
  43. {0x3906, 0x10},
  44. {0x3901, 0x0a},
  45. {0x3731, 0x12},
  46. {0x3600, 0x08}, // VCM control
  47. {0x3601, 0x33}, // VCM control
  48. {0x302d, 0x60}, // system control
  49. {0x3620, 0x52},
  50. {0x371b, 0x20},
  51. {0x471c, 0x50},
  52. {0x3a13, 0x43}, // pre-gain = 1.047x
  53. {0x3a18, 0x00}, // gain ceiling
  54. {0x3a19, 0xf8}, // gain ceiling = 15.5x
  55. {0x3635, 0x13},
  56. {0x3636, 0x03},
  57. {0x3634, 0x40},
  58. {0x3622, 0x01},
  59. {0x3c01, 0x34}, // Band auto, bit[7]
  60. {0x3c04, 0x28}, // threshold low sum
  61. {0x3c05, 0x98}, // threshold high sum
  62. {0x3c06, 0x00}, // light meter 1 threshold[15:8]
  63. {0x3c07, 0x07}, // light meter 1 threshold[7:0]
  64. {0x3c08, 0x00}, // light meter 2 threshold[15:8]
  65. {0x3c09, 0x1c}, // light meter 2 threshold[7:0]
  66. {0x3c0a, 0x9c}, // sample number[15:8]
  67. {0x3c0b, 0x40}, // sample number[7:0]
  68. {0x3810, 0x00}, // Timing Hoffset[11:8]
  69. {0x3811, 0x10}, // Timing Hoffset[7:0]
  70. {0x3812, 0x00}, // Timing Voffset[10:8]
  71. {0x3708, 0x64},
  72. {0x4001, 0x02}, // BLC start from line 2
  73. {0x4005, 0x1a}, // BLC always update
  74. {0x3000, 0x00}, // enable blocks
  75. {0x3004, 0xff}, // enable clocks
  76. {0x300e, 0x58}, // MIPI power down, DVP enable
  77. {0x302e, 0x00},
  78. {0x4300, 0x61},
  79. {0X501F, 0x01},
  80. {0x3820, 0x40}, // flip
  81. {0x3821, 0x00}, // mirror
  82. {0x3814, 0x71}, // timing X inc
  83. {0x3815, 0x35}, // timing Y inc
  84. {0x3800, 0x00}, // HS
  85. {0x3801, 0x00}, // HS
  86. {0x3802, 0x00}, // VS
  87. {0x3803, 0x00}, // VS
  88. {0x3804, 0x0a}, // HW (HE)
  89. {0x3805, 0x3f}, // HW (HE)
  90. {0x3806, 0x07}, // VH (VE)
  91. {0x3807, 0x9f}, // VH (VE)
  92. {0x3808, (320 >> 8)}, // DVPHO
  93. {0x3809, (320 & 0xff)}, // DVPHO
  94. {0x380a, (240 >> 8)}, // DVPVO
  95. {0x380b, (240 & 0xff)}, // DVPVO
  96. {0x380c, 0x07}, // HTS
  97. {0x380d, 0x58}, // HTS
  98. {0x380e, 0x01}, // VTS
  99. {0x380f, 0xf0}, // VTS
  100. {0x3810, 0x00}, // HTS
  101. {0x3811, 0x08}, // HTS
  102. {0x3812, 0x00}, // VTS
  103. {0x3813, 0x02}, // VTS
  104. {0x3618, 0x00},
  105. {0x3612, 0x29},
  106. {0x3709, 0x52},
  107. {0x370c, 0x03},
  108. {0x3a02, 0x02}, // 60Hz max exposure
  109. {0x3a03, 0xe0}, // 60Hz max exposure
  110. {0x3a14, 0x02}, // 50Hz max exposure
  111. {0x3a15, 0xe0}, // 50Hz max exposure
  112. {0x4004, 0x02}, // BLC line number
  113. {0x3002, 0x1c}, // reset JFIFO, SFIFO, JPG
  114. {0x3006, 0xc3}, // disable clock of JPEG2x, JPEG
  115. {0x4713, 0x03}, // JPEG mode 3
  116. {0x4407, 0x04}, // Quantization scale
  117. {0x460b, 0x37},
  118. {0x460c, 0x20},
  119. {0x4837, 0x16}, // MIPI global timing
  120. {0x3824, 0x04}, // PCLK manual divider
  121. {0x5001, 0xA3}, // SDE on, scale on, UV average off, color matrix on, AWB on
  122. {0x3503, 0x00}, // AEC/AGC on
  123. {0x440e, 0x00},
  124. {0x5000, 0xa7}, // Lenc on, raw gamma on, BPC on, WPC on, CIP on
  125. {0x3a0f, 0x30}, // stable range in high
  126. {0x3a10, 0x28}, // stable range in low
  127. {0x3a1b, 0x30}, // stable range out high
  128. {0x3a1e, 0x26}, // stable range out low
  129. {0x3a11, 0x60}, // fast zone high
  130. {0x3a1f, 0x14}, // fast zone low
  131. {0x5800, 0x23},
  132. {0x5801, 0x14},
  133. {0x5802, 0x0f},
  134. {0x5803, 0x0f},
  135. {0x5804, 0x12},
  136. {0x5805, 0x26},
  137. {0x5806, 0x0c},
  138. {0x5807, 0x08},
  139. {0x5808, 0x05},
  140. {0x5809, 0x05},
  141. {0x580a, 0x08},
  142. {0x580b, 0x0d},
  143. {0x580c, 0x08},
  144. {0x580d, 0x03},
  145. {0x580e, 0x00},
  146. {0x580f, 0x00},
  147. {0x5810, 0x03},
  148. {0x5811, 0x09},
  149. {0x5812, 0x07},
  150. {0x5813, 0x03},
  151. {0x5814, 0x00},
  152. {0x5815, 0x01},
  153. {0x5816, 0x03},
  154. {0x5817, 0x08},
  155. {0x5818, 0x0d},
  156. {0x5819, 0x08},
  157. {0x581a, 0x05},
  158. {0x581b, 0x06},
  159. {0x581c, 0x08},
  160. {0x581d, 0x0e},
  161. {0x581e, 0x29},
  162. {0x581f, 0x17},
  163. {0x5820, 0x11},
  164. {0x5821, 0x11},
  165. {0x5822, 0x15},
  166. {0x5823, 0x28},
  167. {0x5824, 0x46},
  168. {0x5825, 0x26},
  169. {0x5826, 0x08},
  170. {0x5827, 0x26},
  171. {0x5828, 0x64},
  172. {0x5829, 0x26},
  173. {0x582a, 0x24},
  174. {0x582b, 0x22},
  175. {0x582c, 0x24},
  176. {0x582d, 0x24},
  177. {0x582e, 0x06},
  178. {0x582f, 0x22},
  179. {0x5830, 0x40},
  180. {0x5831, 0x42},
  181. {0x5832, 0x24},
  182. {0x5833, 0x26},
  183. {0x5834, 0x24},
  184. {0x5835, 0x22},
  185. {0x5836, 0x22},
  186. {0x5837, 0x26},
  187. {0x5838, 0x44},
  188. {0x5839, 0x24},
  189. {0x583a, 0x26},
  190. {0x583b, 0x28},
  191. {0x583c, 0x42},
  192. {0x583d, 0xce}, // lenc BR offset
  193. {0x5180, 0xff}, // AWB B block
  194. {0x5181, 0xf2}, // AWB control
  195. {0x5182, 0x00}, // [7:4] max local counter, [3:0] max fast counter
  196. {0x5183, 0x14}, // AWB advanced
  197. {0x5184, 0x25},
  198. {0x5185, 0x24},
  199. {0x5186, 0x09},
  200. {0x5187, 0x09},
  201. {0x5188, 0x09},
  202. {0x5189, 0x75},
  203. {0x518a, 0x54},
  204. {0x518b, 0xe0},
  205. {0x518c, 0xb2},
  206. {0x518d, 0x42},
  207. {0x518e, 0x3d},
  208. {0x518f, 0x56},
  209. {0x5190, 0x46},
  210. {0x5191, 0xf8}, // AWB top limit
  211. {0x5192, 0x04}, // AWB bottom limit
  212. {0x5193, 0x70}, // red limit
  213. {0x5194, 0xf0}, // green limit
  214. {0x5195, 0xf0}, // blue limit
  215. {0x5196, 0x03}, // AWB control
  216. {0x5197, 0x01}, // local limit
  217. {0x5198, 0x04},
  218. {0x5199, 0x12},
  219. {0x519a, 0x04},
  220. {0x519b, 0x00},
  221. {0x519c, 0x06},
  222. {0x519d, 0x82},
  223. {0x519e, 0x38}, // AWB control
  224. {0x5480, 0x01}, // Gamma bias plus on, bit[0]
  225. {0x5481, 0x08},
  226. {0x5482, 0x14},
  227. {0x5483, 0x28},
  228. {0x5484, 0x51},
  229. {0x5485, 0x65},
  230. {0x5486, 0x71},
  231. {0x5487, 0x7d},
  232. {0x5488, 0x87},
  233. {0x5489, 0x91},
  234. {0x548a, 0x9a},
  235. {0x548b, 0xaa},
  236. {0x548c, 0xb8},
  237. {0x548d, 0xcd},
  238. {0x548e, 0xdd},
  239. {0x548f, 0xea},
  240. {0x5490, 0x1d},
  241. {0x5381, 0x1e}, // CMX1 for Y
  242. {0x5382, 0x5b}, // CMX2 for Y
  243. {0x5383, 0x08}, // CMX3 for Y
  244. {0x5384, 0x0a}, // CMX4 for U
  245. {0x5385, 0x7e}, // CMX5 for U
  246. {0x5386, 0x88}, // CMX6 for U
  247. {0x5387, 0x7c}, // CMX7 for V
  248. {0x5388, 0x6c}, // CMX8 for V
  249. {0x5389, 0x10}, // CMX9 for V
  250. {0x538a, 0x01}, // sign[9]
  251. {0x538b, 0x98}, // sign[8:1]
  252. {0x5580, 0x06}, // saturation on, bit[1]
  253. {0x5583, 0x40},
  254. {0x5584, 0x10},
  255. {0x5589, 0x10},
  256. {0x558a, 0x00},
  257. {0x558b, 0xf8},
  258. {0x501d, 0x40}, // enable manual offset of contrast
  259. {0x5300, 0x08}, // CIP sharpen MT threshold 1
  260. {0x5301, 0x30}, // CIP sharpen MT threshold 2
  261. {0x5302, 0x10}, // CIP sharpen MT offset 1
  262. {0x5303, 0x00}, // CIP sharpen MT offset 2
  263. {0x5304, 0x08}, // CIP DNS threshold 1
  264. {0x5305, 0x30}, // CIP DNS threshold 2
  265. {0x5306, 0x08}, // CIP DNS offset 1
  266. {0x5307, 0x16}, // CIP DNS offset 2
  267. {0x5309, 0x08}, // CIP sharpen TH threshold 1
  268. {0x530a, 0x30}, // CIP sharpen TH threshold 2
  269. {0x530b, 0x04}, // CIP sharpen TH offset 1
  270. {0x530c, 0x06}, // CIP sharpen TH offset 2
  271. {0x5025, 0x00},
  272. {0x3008, 0x02}, // wake up from standby, bit[6]
  273. {0x4740, 0X21}, //VSYNC active HIGH
  274. };
  275. #else
  276. const uint16_t ov5640_init_reg_tbl[][2]=
  277. {
  278. //; for the setting , 24M Mlck input and 24M Plck output
  279. //;15fps YUV mode
  280. {0x3103 ,0x11},
  281. {0x3008 ,0x82},
  282. {0x3008 ,0x42},
  283. {0x3103 ,0x03},
  284. {0x3017 ,0xff},
  285. {0x3018 ,0xff},
  286. {0x3034 ,0x1a},
  287. {0x3035 ,0x11},
  288. {0x3036 ,0x46},
  289. {0x3037 ,0x13},
  290. {0x3108 ,0x01},
  291. {0x3630 ,0x36},
  292. {0x3631 ,0x0e},
  293. {0x3632 ,0xe2},
  294. {0x3633 ,0x12},
  295. {0x3621 ,0xe0},
  296. {0x3704 ,0xa0},
  297. {0x3703 ,0x5a},
  298. {0x3715 ,0x78},
  299. {0x3717 ,0x01},
  300. {0x370b ,0x60},
  301. {0x3705 ,0x1a},
  302. {0x3905 ,0x02},
  303. {0x3906 ,0x10},
  304. {0x3901 ,0x0a},
  305. {0x3731 ,0x12},
  306. {0x3600 ,0x08},
  307. {0x3601 ,0x33},
  308. {0x302d ,0x60},
  309. {0x3620 ,0x52},
  310. {0x371b ,0x20},
  311. {0x471c ,0x50},
  312. {0x3a13 ,0x43},
  313. {0x3a18 ,0x00},
  314. {0x3a19 ,0xf8},
  315. {0x3635 ,0x13},
  316. {0x3636 ,0x03},
  317. {0x3634 ,0x40},
  318. {0x3622 ,0x01},
  319. //Confidential For Actions Only
  320. {0x3c01 ,0x34},
  321. {0x3c04 ,0x28},
  322. {0x3c05 ,0x98},
  323. {0x3c06 ,0x00},
  324. {0x3c07 ,0x08},
  325. {0x3c08 ,0x00},
  326. {0x3c09 ,0x1c},
  327. {0x3c0a ,0x9c},
  328. {0x3c0b ,0x40},
  329. {0x3820 ,0x40},
  330. {0x3821 ,0x00},
  331. {0x3814 ,0x31},
  332. {0x3815 ,0x31},
  333. // {0x3800 ,0x00},
  334. // {0x3801 ,0x00},
  335. // {0x3802 ,0x00},
  336. // {0x3803 ,0x04},
  337. // {0x3804 ,0x0a},
  338. // {0x3805 ,0x3f},
  339. // {0x3806 ,0x07},
  340. // {0x3807 ,0x9b},
  341. // {0x3808 ,0x02},
  342. // {0x3809 ,0x80},
  343. // {0x380a ,0x01},
  344. // {0x380b ,0xe0},
  345. // {0x380c ,0x07},
  346. // {0x380d ,0x68},
  347. // {0x380e ,0x03},
  348. // {0x380f ,0xd8},
  349. {0x3800 ,0x0 },
  350. {0x3801 ,0x0 },
  351. {0x3802 ,0x0 },
  352. {0x3803 ,0x4 },
  353. {0x3804 ,0xa },
  354. {0x3805 ,0x3f},
  355. {0x3806 ,0x7 },
  356. {0x3807 ,0x9b},
  357. {0x3808 ,0x1 },
  358. {0x3809 ,0x40},
  359. {0x380a ,0x0 },
  360. {0x380b ,0xf0},
  361. {0x380c ,0x7 },
  362. {0x380d ,0x68},
  363. {0x380e ,0x3 },
  364. {0x380f ,0xd8},
  365. {0x3810 ,0x00},
  366. {0x3811 ,0x10},
  367. {0x3812 ,0x00},
  368. {0x3813 ,0x06},
  369. {0x3618 ,0x00},
  370. {0x3612 ,0x29},
  371. {0x3708 ,0x64},
  372. {0x3709 ,0x52},
  373. {0x370c ,0x03},
  374. {0x3a02 ,0x03},
  375. {0x3a03 ,0xd8},
  376. {0x3a08 ,0x01},
  377. {0x3a09 ,0x27},
  378. {0x3a0a ,0x00},
  379. {0x3a0b ,0xf6},
  380. {0x3a0e ,0x03},
  381. {0x3a0d ,0x04},
  382. {0x3a14 ,0x03},
  383. {0x3a15 ,0xd8},
  384. //Confidential For Actions Only
  385. {0x4001 ,0x02},
  386. {0x4004 ,0x02},
  387. {0x3000 ,0x00},
  388. {0x3002 ,0x1c},
  389. {0x3004 ,0xff},
  390. {0x3006 ,0xc3},
  391. {0x300e ,0x58},
  392. {0x302e ,0x00},
  393. // {0x4300 ,0x30},
  394. // {0x501f ,0x00},
  395. {0x4300 ,0x61},
  396. {0x501f ,0x01},
  397. {0x4713 ,0x03},
  398. {0x4407 ,0x04},
  399. {0x440e ,0x00},
  400. {0x460b ,0x35},
  401. {0x460c ,0x22},
  402. {0x3824 ,0x02},
  403. {0x5000 ,0xa7},
  404. {0x5001 ,0xa3},
  405. {0x5180 ,0xff},
  406. {0x5181 ,0xf2},
  407. {0x5182 ,0x00},
  408. {0x5183 ,0x14},
  409. {0x5184 ,0x25},
  410. {0x5185 ,0x24},
  411. {0x5186 ,0x09},
  412. {0x5187 ,0x09},
  413. {0x5188 ,0x09},
  414. {0x5189 ,0x75},
  415. {0x518a ,0x54},
  416. {0x518b ,0xe0},
  417. {0x518c ,0xb2},
  418. {0x518d ,0x42},
  419. {0x518e ,0x3d},
  420. {0x518f ,0x56},
  421. {0x5190 ,0x46},
  422. {0x5191 ,0xf8},
  423. {0x5192 ,0x04},
  424. {0x5193 ,0x70},
  425. {0x5194 ,0xf0},
  426. {0x5195 ,0xf0},
  427. {0x5196 ,0x03},
  428. {0x5197 ,0x01},
  429. {0x5198 ,0x04},
  430. {0x5199 ,0x12},
  431. {0x519a ,0x04},
  432. {0x519b ,0x00},
  433. {0x519c ,0x06},
  434. {0x519d ,0x82},
  435. //Confidential For Actions Only
  436. {0x519e ,0x38},
  437. {0x5381 ,0x1e},
  438. {0x5382 ,0x5b},
  439. {0x5383 ,0x08},
  440. {0x5384 ,0x0a},
  441. {0x5385 ,0x7e},
  442. {0x5386 ,0x88},
  443. {0x5387 ,0x7c},
  444. {0x5388 ,0x6c},
  445. {0x5389 ,0x10},
  446. {0x538a ,0x01},
  447. {0x538b ,0x98},
  448. {0x5300 ,0x08},
  449. {0x5301 ,0x30},
  450. {0x5302 ,0x10},
  451. {0x5303 ,0x00},
  452. {0x5304 ,0x08},
  453. {0x5305 ,0x30},
  454. {0x5306 ,0x08},
  455. {0x5307 ,0x16},
  456. {0x5309 ,0x08},
  457. {0x530a ,0x30},
  458. {0x530b ,0x04},
  459. {0x530c ,0x06},
  460. {0x5480 ,0x01},
  461. {0x5481 ,0x08},
  462. {0x5482 ,0x14},
  463. {0x5483 ,0x28},
  464. {0x5484 ,0x51},
  465. {0x5485 ,0x65},
  466. {0x5486 ,0x71},
  467. {0x5487 ,0x7d},
  468. {0x5488 ,0x87},
  469. {0x5489 ,0x91},
  470. {0x548a ,0x9a},
  471. {0x548b ,0xaa},
  472. {0x548c ,0xb8},
  473. {0x548d ,0xcd},
  474. {0x548e ,0xdd},
  475. {0x548f ,0xea},
  476. {0x5490 ,0x1d},
  477. {0x5580 ,0x02},
  478. {0x5583 ,0x40},
  479. {0x5584 ,0x10},
  480. {0x5589 ,0x10},
  481. {0x558a ,0x00},
  482. {0x558b ,0xf8},
  483. {0x5800 ,0x23},
  484. //Confidential For Actions Only
  485. {0x5801 ,0x14},
  486. {0x5802 ,0x0f},
  487. {0x5803 ,0x0f},
  488. {0x5804 ,0x12},
  489. {0x5805 ,0x26},
  490. {0x5806 ,0x0c},
  491. {0x5807 ,0x08},
  492. {0x5808 ,0x05},
  493. {0x5809 ,0x05},
  494. {0x580a ,0x08},
  495. {0x580b ,0x0d},
  496. {0x580c ,0x08},
  497. {0x580d ,0x03},
  498. {0x580e ,0x00},
  499. {0x580f ,0x00},
  500. {0x5810 ,0x03},
  501. {0x5811 ,0x09},
  502. {0x5812 ,0x07},
  503. {0x5813 ,0x03},
  504. {0x5814 ,0x00},
  505. {0x5815 ,0x01},
  506. {0x5816 ,0x03},
  507. {0x5817 ,0x08},
  508. {0x5818 ,0x0d},
  509. {0x5819 ,0x08},
  510. {0x581a ,0x05},
  511. {0x581b ,0x06},
  512. {0x581c ,0x08},
  513. {0x581d ,0x0e},
  514. {0x581e ,0x29},
  515. {0x581f ,0x17},
  516. {0x5820 ,0x11},
  517. {0x5821 ,0x11},
  518. {0x5822 ,0x15},
  519. {0x5823 ,0x28},
  520. {0x5824 ,0x46},
  521. {0x5825 ,0x26},
  522. {0x5826 ,0x08},
  523. {0x5827 ,0x26},
  524. {0x5828 ,0x64},
  525. {0x5829 ,0x26},
  526. {0x582a ,0x24},
  527. {0x582b ,0x22},
  528. {0x582c ,0x24},
  529. {0x582d ,0x24},
  530. {0x582e ,0x06},
  531. {0x582f ,0x22},
  532. {0x5830 ,0x40},
  533. //Confidential For Actions Only
  534. {0x5831 ,0x42},
  535. {0x5832 ,0x24},
  536. {0x5833 ,0x26},
  537. {0x5834 ,0x24},
  538. {0x5835 ,0x22},
  539. {0x5836 ,0x22},
  540. {0x5837 ,0x26},
  541. {0x5838 ,0x44},
  542. {0x5839 ,0x24},
  543. {0x583a ,0x26},
  544. {0x583b ,0x28},
  545. {0x583c ,0x42},
  546. {0x583d ,0xce},
  547. {0x5025 ,0x00},
  548. {0x3a0f ,0x30},
  549. {0x3a10 ,0x28},
  550. {0x3a1b ,0x30},
  551. {0x3a1e ,0x26},
  552. {0x3a11 ,0x60},
  553. {0x3a1f ,0x14},
  554. {0x3008 ,0x02},
  555. {0x3035 ,0x21},
  556. //Band,0x50Hz
  557. {0x3c01,0xb4},
  558. {0x3c00,0x04},
  559. //gain ceiling
  560. {0x3a19,0x7c},
  561. //OV5640 LENC setting
  562. {0x5800 ,0x2c},
  563. {0x5801 ,0x17},
  564. {0x5802 ,0x11},
  565. {0x5803 ,0x11},
  566. {0x5804 ,0x15},
  567. {0x5805 ,0x29},
  568. {0x5806 ,0x08},
  569. {0x5807 ,0x06},
  570. {0x5808 ,0x04},
  571. {0x5809 ,0x04},
  572. {0x580a ,0x05},
  573. {0x580b ,0x07},
  574. {0x580c ,0x06},
  575. {0x580d ,0x03},
  576. {0x580e ,0x01},
  577. {0x580f ,0x01},
  578. {0x5810 ,0x03},
  579. {0x5811 ,0x06},
  580. //Confidential For Actions Only
  581. {0x5812 ,0x06},
  582. {0x5813 ,0x02},
  583. {0x5814 ,0x01},
  584. {0x5815 ,0x01},
  585. {0x5816 ,0x04},
  586. {0x5817 ,0x07},
  587. {0x5818 ,0x06},
  588. {0x5819 ,0x07},
  589. {0x581a ,0x06},
  590. {0x581b ,0x06},
  591. {0x581c ,0x06},
  592. {0x581d ,0x0e},
  593. {0x581e ,0x31},
  594. {0x581f ,0x12},
  595. {0x5820 ,0x11},
  596. {0x5821 ,0x11},
  597. {0x5822 ,0x11},
  598. {0x5823 ,0x2f},
  599. {0x5824 ,0x12},
  600. {0x5825 ,0x25},
  601. {0x5826 ,0x39},
  602. {0x5827 ,0x29},
  603. {0x5828 ,0x27},
  604. {0x5829 ,0x39},
  605. {0x582a ,0x26},
  606. {0x582b ,0x33},
  607. {0x582c ,0x24},
  608. {0x582d ,0x39},
  609. {0x582e ,0x28},
  610. {0x582f ,0x21},
  611. {0x5830 ,0x40},
  612. {0x5831 ,0x21},
  613. {0x5832 ,0x17},
  614. {0x5833 ,0x17},
  615. {0x5834 ,0x15},
  616. {0x5835 ,0x11},
  617. {0x5836 ,0x24},
  618. {0x5837 ,0x27},
  619. {0x5838 ,0x26},
  620. {0x5839 ,0x26},
  621. {0x583a ,0x26},
  622. {0x583b ,0x28},
  623. {0x583c ,0x14},
  624. {0x583d ,0xee},
  625. {0x4005 ,0x1a},
  626. //color
  627. {0x5381,0x26},
  628. {0x5382,0x50},
  629. //Confidential For Actions Only
  630. {0x5383,0x0c},
  631. {0x5384,0x09},
  632. {0x5385,0x74},
  633. {0x5386,0x7d},
  634. {0x5387,0x7e},
  635. {0x5388,0x75},
  636. {0x5389,0x09},
  637. {0x538b,0x98},
  638. {0x538a,0x01},
  639. //UVAdjust Auto Mode
  640. {0x5580,0x02},
  641. {0x5588,0x01},
  642. {0x5583,0x40},
  643. {0x5584,0x10},
  644. {0x5589,0x0f},
  645. {0x558a,0x00},
  646. {0x558b,0x3f},
  647. //De-Noise,0xAuto
  648. {0x5308,0x25},
  649. {0x5304,0x08},
  650. {0x5305,0x30},
  651. {0x5306,0x10},
  652. {0x5307,0x20},
  653. //awb
  654. {0x5180,0xff},
  655. {0x5181,0xf2},
  656. {0x5182,0x11},
  657. {0x5183,0x14},
  658. {0x5184,0x25},
  659. {0x5185,0x24},
  660. {0x5186,0x10},
  661. {0x5187,0x12},
  662. {0x5188,0x10},
  663. {0x5189,0x80},
  664. {0x518a,0x54},
  665. {0x518b,0xb8},
  666. {0x518c,0xb2},
  667. {0x518d,0x42},
  668. {0x518e,0x3a},
  669. {0x518f,0x56},
  670. {0x5190,0x46},
  671. {0x5191,0xf0},
  672. {0x5192,0xf},
  673. {0x5193,0x70},
  674. //Confidential For Actions Only
  675. {0x5194,0xf0},
  676. {0x5195,0xf0},
  677. {0x5196,0x3},
  678. {0x5197,0x1},
  679. {0x5198,0x6},
  680. {0x5199,0x62},
  681. {0x519a,0x4},
  682. {0x519b,0x0},
  683. {0x519c,0x4},
  684. {0x519d,0xe7},
  685. {0x519e,0x38},
  686. };
  687. #endif
  688. #endif