gc0308_settings.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. #ifndef _GC0308_SETTINGS_H_
  2. #define _GC0308_SETTINGS_H_
  3. #include <stdint.h>
  4. #define REG_DLY 0xffff
  5. #define REGLIST_TAIL 0x0000 /* Array end token */
  6. static const uint16_t gc0308_sensor_default_regs[][2] = {
  7. {0xfe, 0x00},
  8. {0xec, 0x20},
  9. {0x05, 0x00},
  10. {0x06, 0x00},
  11. {0x07, 0x00},
  12. {0x08, 0x00},
  13. {0x09, 0x01},
  14. {0x0a, 0xe8},
  15. {0x0b, 0x02},
  16. {0x0c, 0x88},
  17. {0x0d, 0x02},
  18. {0x0e, 0x02},
  19. {0x10, 0x26},
  20. {0x11, 0x0d},
  21. {0x12, 0x2a},
  22. {0x13, 0x00},
  23. {0x14, 0x11},
  24. {0x15, 0x0a},
  25. {0x16, 0x05},
  26. {0x17, 0x01},
  27. {0x18, 0x44},
  28. {0x19, 0x44},
  29. {0x1a, 0x2a},
  30. {0x1b, 0x00},
  31. {0x1c, 0x49},
  32. {0x1d, 0x9a},
  33. {0x1e, 0x61},
  34. {0x1f, 0x00}, //pad drv <=24MHz, use 0x00 is ok
  35. {0x20, 0x7f},
  36. {0x21, 0xfa},
  37. {0x22, 0x57},
  38. {0x24, 0xa2}, //YCbYCr
  39. {0x25, 0x0f},
  40. {0x26, 0x03}, // 0x01
  41. {0x28, 0x00},
  42. {0x2d, 0x0a},
  43. {0x2f, 0x01},
  44. {0x30, 0xf7},
  45. {0x31, 0x50},
  46. {0x32, 0x00},
  47. {0x33, 0x28},
  48. {0x34, 0x2a},
  49. {0x35, 0x28},
  50. {0x39, 0x04},
  51. {0x3a, 0x20},
  52. {0x3b, 0x20},
  53. {0x3c, 0x00},
  54. {0x3d, 0x00},
  55. {0x3e, 0x00},
  56. {0x3f, 0x00},
  57. {0x50, 0x14}, // 0x14
  58. {0x52, 0x41},
  59. {0x53, 0x80},
  60. {0x54, 0x80},
  61. {0x55, 0x80},
  62. {0x56, 0x80},
  63. {0x8b, 0x20},
  64. {0x8c, 0x20},
  65. {0x8d, 0x20},
  66. {0x8e, 0x14},
  67. {0x8f, 0x10},
  68. {0x90, 0x14},
  69. {0x91, 0x3c},
  70. {0x92, 0x50},
  71. //{0x8b,0x10},
  72. //{0x8c,0x10},
  73. //{0x8d,0x10},
  74. //{0x8e,0x10},
  75. //{0x8f,0x10},
  76. //{0x90,0x10},
  77. //{0x91,0x3c},
  78. //{0x92,0x50},
  79. {0x5d, 0x12},
  80. {0x5e, 0x1a},
  81. {0x5f, 0x24},
  82. {0x60, 0x07},
  83. {0x61, 0x15},
  84. {0x62, 0x08}, // 0x08
  85. {0x64, 0x03}, // 0x03
  86. {0x66, 0xe8},
  87. {0x67, 0x86},
  88. {0x68, 0x82},
  89. {0x69, 0x18},
  90. {0x6a, 0x0f},
  91. {0x6b, 0x00},
  92. {0x6c, 0x5f},
  93. {0x6d, 0x8f},
  94. {0x6e, 0x55},
  95. {0x6f, 0x38},
  96. {0x70, 0x15},
  97. {0x71, 0x33},
  98. {0x72, 0xdc},
  99. {0x73, 0x00},
  100. {0x74, 0x02},
  101. {0x75, 0x3f},
  102. {0x76, 0x02},
  103. {0x77, 0x38}, // 0x47
  104. {0x78, 0x88},
  105. {0x79, 0x81},
  106. {0x7a, 0x81},
  107. {0x7b, 0x22},
  108. {0x7c, 0xff},
  109. {0x93, 0x48}, //color matrix default
  110. {0x94, 0x02},
  111. {0x95, 0x07},
  112. {0x96, 0xe0},
  113. {0x97, 0x40},
  114. {0x98, 0xf0},
  115. {0xb1, 0x40},
  116. {0xb2, 0x40},
  117. {0xb3, 0x40}, //0x40
  118. {0xb6, 0xe0},
  119. {0xbd, 0x38},
  120. {0xbe, 0x36},
  121. {0xd0, 0xCB},
  122. {0xd1, 0x10},
  123. {0xd2, 0x90},
  124. {0xd3, 0x48},
  125. {0xd5, 0xF2},
  126. {0xd6, 0x16},
  127. {0xdb, 0x92},
  128. {0xdc, 0xA5},
  129. {0xdf, 0x23},
  130. {0xd9, 0x00},
  131. {0xda, 0x00},
  132. {0xe0, 0x09},
  133. {0xed, 0x04},
  134. {0xee, 0xa0},
  135. {0xef, 0x40},
  136. {0x80, 0x03},
  137. {0x9F, 0x10},
  138. {0xA0, 0x20},
  139. {0xA1, 0x38},
  140. {0xA2, 0x4e},
  141. {0xA3, 0x63},
  142. {0xA4, 0x76},
  143. {0xA5, 0x87},
  144. {0xA6, 0xa2},
  145. {0xA7, 0xb8},
  146. {0xA8, 0xca},
  147. {0xA9, 0xd8},
  148. {0xAA, 0xe3},
  149. {0xAB, 0xeb},
  150. {0xAC, 0xf0},
  151. {0xAD, 0xF8},
  152. {0xAE, 0xFd},
  153. {0xAF, 0xFF},
  154. {0xc0, 0x00},
  155. {0xc1, 0x10},
  156. {0xc2, 0x1c},
  157. {0xc3, 0x30},
  158. {0xc4, 0x43},
  159. {0xc5, 0x54},
  160. {0xc6, 0x65},
  161. {0xc7, 0x75},
  162. {0xc8, 0x93},
  163. {0xc9, 0xB0},
  164. {0xca, 0xCB},
  165. {0xcb, 0xE6},
  166. {0xcc, 0xFF},
  167. {0xf0, 0x02},
  168. {0xf1, 0x01},
  169. {0xf2, 0x02},
  170. {0xf3, 0x30},
  171. {0xf7, 0x04},
  172. {0xf8, 0x02},
  173. {0xf9, 0x9f},
  174. {0xfa, 0x78},
  175. {0xfe, 0x01},
  176. {0x00, 0xf5},
  177. {0x02, 0x20},
  178. {0x04, 0x10},
  179. {0x05, 0x08},
  180. {0x06, 0x20},
  181. {0x08, 0x0a},
  182. {0x0a, 0xa0},
  183. {0x0b, 0x60},
  184. {0x0c, 0x08},
  185. {0x0e, 0x44},
  186. {0x0f, 0x32},
  187. {0x10, 0x41},
  188. {0x11, 0x37},
  189. {0x12, 0x22},
  190. {0x13, 0x19},
  191. {0x14, 0x44},
  192. {0x15, 0x44},
  193. {0x16, 0xc2},
  194. {0x17, 0xA8},
  195. {0x18, 0x18},
  196. {0x19, 0x50},
  197. {0x1a, 0xd8},
  198. {0x1b, 0xf5},
  199. {0x70, 0x40},
  200. {0x71, 0x58},
  201. {0x72, 0x30},
  202. {0x73, 0x48},
  203. {0x74, 0x20},
  204. {0x75, 0x60},
  205. {0x77, 0x20},
  206. {0x78, 0x32},
  207. {0x30, 0x03},
  208. {0x31, 0x40},
  209. {0x32, 0x10},
  210. {0x33, 0xe0},
  211. {0x34, 0xe0},
  212. {0x35, 0x00},
  213. {0x36, 0x80},
  214. {0x37, 0x00},
  215. {0x38, 0x04},
  216. {0x39, 0x09},
  217. {0x3a, 0x12},
  218. {0x3b, 0x1C},
  219. {0x3c, 0x28},
  220. {0x3d, 0x31},
  221. {0x3e, 0x44},
  222. {0x3f, 0x57},
  223. {0x40, 0x6C},
  224. {0x41, 0x81},
  225. {0x42, 0x94},
  226. {0x43, 0xA7},
  227. {0x44, 0xB8},
  228. {0x45, 0xD6},
  229. {0x46, 0xEE},
  230. {0x47, 0x0d},
  231. {0x62, 0xf7},
  232. {0x63, 0x68},
  233. {0x64, 0xd3},
  234. {0x65, 0xd3},
  235. {0x66, 0x60},
  236. {0xfe, 0x00},
  237. {REGLIST_TAIL, 0x00},
  238. };
  239. #endif