kd_imgsensor.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. #ifndef _KD_IMGSENSOR_H
  2. #define _KD_IMGSENSOR_H
  3. #include <linux/ioctl.h>
  4. /* #define CONFIG_COMPAT */
  5. #ifdef CONFIG_COMPAT
  6. /* 64 bit */
  7. #include <linux/fs.h>
  8. #include <linux/compat.h>
  9. #endif
  10. #ifndef ASSERT
  11. #define ASSERT(expr) BUG_ON(!(expr))
  12. #endif
  13. #define IMGSENSORMAGIC 'i'
  14. /* IOCTRL(inode * ,file * ,cmd ,arg ) */
  15. /* S means "set through a ptr" */
  16. /* T means "tell by a arg value" */
  17. /* G means "get by a ptr" */
  18. /* Q means "get by return a value" */
  19. /* X means "switch G and S atomically" */
  20. /* H means "switch T and Q atomically" */
  21. /*******************************************************************************
  22. *
  23. ********************************************************************************/
  24. #define YUV_INFO(_id, name, getCalData)\
  25. { \
  26. _id, name, \
  27. NSFeature : : YUVSensorInfo < _id > : : createInstance(name, #name), \
  28. (NSFeature : : SensorInfoBase*(*)()) \
  29. NSFeature : : YUVSensorInfo < _id > : : getInstance, \
  30. NSFeature : : YUVSensorInfo < _id > : : getDefaultData, \
  31. getCalData, \
  32. NSFeature : : YUVSensorInfo < _id > : : getNullFlickerPara \
  33. }
  34. #define RAW_INFO(_id, name, getCalData)\
  35. { \
  36. _id, name, \
  37. NSFeature : : RAWSensorInfo < _id > : : createInstance(name, #name), \
  38. (NSFeature : : SensorInfoBase*(*)()) \
  39. NSFeature : : RAWSensorInfo < _id > : : getInstance, \
  40. NSFeature : : RAWSensorInfo < _id > : : getDefaultData, \
  41. getCalData, \
  42. NSFeature : : RAWSensorInfo < _id > : : getFlickerPara \
  43. }
  44. /*******************************************************************************
  45. *
  46. ********************************************************************************/
  47. /* sensorOpen */
  48. #define KDIMGSENSORIOC_T_OPEN _IO(IMGSENSORMAGIC, 0)
  49. /* sensorGetInfo */
  50. #define KDIMGSENSORIOC_X_GETINFO _IOWR(IMGSENSORMAGIC, 5, ACDK_SENSOR_GETINFO_STRUCT)
  51. /* sensorGetResolution */
  52. #define KDIMGSENSORIOC_X_GETRESOLUTION _IOWR(IMGSENSORMAGIC, 10, ACDK_SENSOR_RESOLUTION_INFO_STRUCT)
  53. /* For kernel 64-bit */
  54. #define KDIMGSENSORIOC_X_GETRESOLUTION2 _IOWR(IMGSENSORMAGIC, 10, ACDK_SENSOR_PRESOLUTION_STRUCT)
  55. /* sensorFeatureControl */
  56. #define KDIMGSENSORIOC_X_FEATURECONCTROL _IOWR(IMGSENSORMAGIC, 15, ACDK_SENSOR_FEATURECONTROL_STRUCT)
  57. /* sensorControl */
  58. #define KDIMGSENSORIOC_X_CONTROL _IOWR(IMGSENSORMAGIC, 20, ACDK_SENSOR_CONTROL_STRUCT)
  59. /* sensorClose */
  60. #define KDIMGSENSORIOC_T_CLOSE _IO(IMGSENSORMAGIC, 25)
  61. /* sensorSearch */
  62. #define KDIMGSENSORIOC_T_CHECK_IS_ALIVE _IO(IMGSENSORMAGIC, 30)
  63. /* set sensor driver */
  64. #define KDIMGSENSORIOC_X_SET_DRIVER _IOWR(IMGSENSORMAGIC, 35, SENSOR_DRIVER_INDEX_STRUCT)
  65. /* get socket postion */
  66. #define KDIMGSENSORIOC_X_GET_SOCKET_POS _IOWR(IMGSENSORMAGIC, 40, u32)
  67. /* set I2C bus */
  68. #define KDIMGSENSORIOC_X_SET_I2CBUS _IOWR(IMGSENSORMAGIC, 45, u32)
  69. /* set I2C bus */
  70. #define KDIMGSENSORIOC_X_RELEASE_I2C_TRIGGER_LOCK _IO(IMGSENSORMAGIC, 50)
  71. /* Set Shutter Gain Wait Done */
  72. #define KDIMGSENSORIOC_X_SET_SHUTTER_GAIN_WAIT_DONE _IOWR(IMGSENSORMAGIC, 55, u32)
  73. /* set mclk */
  74. #define KDIMGSENSORIOC_X_SET_MCLK_PLL _IOWR(IMGSENSORMAGIC, 60, ACDK_SENSOR_MCLK_STRUCT)
  75. #define KDIMGSENSORIOC_X_GETINFO2 _IOWR(IMGSENSORMAGIC, 65, IMAGESENSOR_GETINFO_STRUCT)
  76. /* set open/close sensor index */
  77. #define KDIMGSENSORIOC_X_SET_CURRENT_SENSOR _IOWR(IMGSENSORMAGIC, 70, u32)
  78. /* set GPIO */
  79. #define KDIMGSENSORIOC_X_SET_GPIO _IOWR(IMGSENSORMAGIC, 75, IMGSENSOR_GPIO_STRUCT)
  80. /* Get ISP CLK */
  81. #define KDIMGSENSORIOC_X_GET_ISP_CLK _IOWR(IMGSENSORMAGIC, 80, u32)
  82. #ifdef CONFIG_COMPAT
  83. #define COMPAT_KDIMGSENSORIOC_X_GETINFO _IOWR(IMGSENSORMAGIC, 5, COMPAT_ACDK_SENSOR_GETINFO_STRUCT)
  84. #define COMPAT_KDIMGSENSORIOC_X_FEATURECONCTROL _IOWR(IMGSENSORMAGIC, 15, COMPAT_ACDK_SENSOR_FEATURECONTROL_STRUCT)
  85. #define COMPAT_KDIMGSENSORIOC_X_CONTROL _IOWR(IMGSENSORMAGIC, 20, COMPAT_ACDK_SENSOR_CONTROL_STRUCT)
  86. #define COMPAT_KDIMGSENSORIOC_X_GETINFO2 _IOWR(IMGSENSORMAGIC, 65, COMPAT_IMAGESENSOR_GETINFO_STRUCT)
  87. #define COMPAT_KDIMGSENSORIOC_X_GETRESOLUTION2 _IOWR(IMGSENSORMAGIC, 10, COMPAT_ACDK_SENSOR_PRESOLUTION_STRUCT)
  88. #endif
  89. /*******************************************************************************
  90. *
  91. ********************************************************************************/
  92. /* SENSOR CHIP VERSION */
  93. #define HM5040MIPI_SENSOR_ID 0x03BB// RENEW IN PDF HM5040 DATASHEET
  94. /*IMX*/
  95. #define IMX377_SENSOR_ID 0x0377
  96. #define IMX278_SENSOR_ID 0x0278
  97. #define IMX258_SENSOR_ID 0x0258
  98. #define IMX230_SENSOR_ID 0x0230
  99. #define IMX220_SENSOR_ID 0x0220
  100. #define IMX219_SENSOR_ID 0x0219
  101. #define IMX215_SENSOR_ID 0x0215
  102. #define IMX214_SENSOR_ID 0x0214
  103. #define IMX179_SENSOR_ID 0x0179
  104. #define IMX178_SENSOR_ID 0x0178
  105. #define IMX135_SENSOR_ID 0x0135
  106. #define IMX132MIPI_SENSOR_ID 0x0132
  107. #define IMX119_SENSOR_ID 0x0119
  108. #define IMX105_SENSOR_ID 0x0105
  109. #define IMX091_SENSOR_ID 0x0091
  110. #define IMX073_SENSOR_ID 0x0046
  111. #define IMX058_SENSOR_ID 0x0058
  112. /*OV*/
  113. #define OV23850_SENSOR_ID 0x023850
  114. #define OV16825MIPI_SENSOR_ID 0x016820
  115. #define OV13850_SENSOR_ID 0xD850
  116. #define OV12830_SENSOR_ID 0xC830
  117. #define OV9760MIPI_SENSOR_ID 0x9760
  118. #define OV9740MIPI_SENSOR_ID 0x9740
  119. #define OV9726_SENSOR_ID 0x9726
  120. #define OV9726MIPI_SENSOR_ID 0x9726
  121. #define OV8865_SENSOR_ID 0x8865
  122. #define OV8858_SENSOR_ID 0x8858
  123. #define OV8858S_SENSOR_ID (0x8858+1)
  124. #define OV8830_SENSOR_ID 0x8830
  125. #define OV8825_SENSOR_ID 0x8825
  126. #define OV7675_SENSOR_ID 0x7673
  127. #define OV5693_SENSOR_ID 0x5690
  128. #define OV5670MIPI_SENSOR_ID 0x5670
  129. #define OV5671MIPI_SENSOR_ID 0x5671
  130. #define OV5650_SENSOR_ID 0x5651
  131. #define OV5650MIPI_SENSOR_ID 0x5651
  132. #define OV5648MIPI_SENSOR_ID 0x5648
  133. #define OV5647_SENSOR_ID 0x5647
  134. #define OV5647MIPI_SENSOR_ID 0x5647
  135. #define OV5645MIPI_SENSOR_ID 0x5645
  136. #define OV5642_SENSOR_ID 0x5642
  137. #define OV4688MIPI_SENSOR_ID 0x4688
  138. #define OV3640_SENSOR_ID 0x364C
  139. #define OV2724MIPI_SENSOR_ID 0x2724
  140. #define OV2722MIPI_SENSOR_ID 0x2722
  141. #define OV2680MIPI_SENSOR_ID 0x2680
  142. #define OV2680_SENSOR_ID 0x2680
  143. #define OV2659_SENSOR_ID 0x2656
  144. #define OV2655_SENSOR_ID 0x2656
  145. #define OV2650_SENSOR_ID 0x2652
  146. #define OV2650_SENSOR_ID_1 0x2651
  147. #define OV2650_SENSOR_ID_2 0x2652
  148. #define OV2650_SENSOR_ID_3 0x2655
  149. /*S5K*/
  150. #define S5K2X8_SENSOR_ID 0x2188
  151. #define S5K2P8_SENSOR_ID 0x2108
  152. #define S5K3M2_SENSOR_ID 0x30D2
  153. #define S5K3AAEA_SENSOR_ID 0x07AC
  154. #define S5K3BAFB_SENSOR_ID 0x7070
  155. #define S5K3H7Y_SENSOR_ID 0x3087
  156. #define S5K3H2YX_SENSOR_ID 0x382b
  157. #define S5KA3DFX_SENSOR_ID 0x00AB
  158. #define S5K3E2FX_SENSOR_ID 0x3E2F
  159. #define S5K4B2FX_SENSOR_ID 0x5080
  160. #define S5K4E1GA_SENSOR_ID 0x4E10
  161. #define S5K4ECGX_SENSOR_ID 0x4EC0
  162. #define S5K53BEX_SENSOR_ID 0x45A8
  163. #define S5K53BEB_SENSOR_ID 0x87A8
  164. #define S5K5BAFX_SENSOR_ID 0x05BA
  165. #define S5K5E2YA_SENSOR_ID 0x5e20
  166. #define S5K4H5YX_2LANE_SENSOR_ID 0x485B
  167. #define S5K4H5YC_SENSOR_ID 0x485B
  168. #define S5K83AFX_SENSOR_ID 0x01C4
  169. #define S5K5CAGX_SENSOR_ID 0x05ca
  170. #define S5K8AAYX_MIPI_SENSOR_ID 0x08aa
  171. #define S5K8AAYX_SENSOR_ID 0x08aa
  172. /*HI*/
  173. #define HI841_SENSOR_ID 0x0841
  174. #define HI707_SENSOR_ID 0x00b8
  175. #define HI704_SENSOR_ID 0x0096
  176. #define HI551_SENSOR_ID 0x0551
  177. #define HI545MIPI_SENSOR_ID 0x0545
  178. #define HI544MIPI_SENSOR_ID 0x0544
  179. #define HI542_SENSOR_ID 0x00B1
  180. #define HI542MIPI_SENSOR_ID 0x00B1
  181. #define HI253_SENSOR_ID 0x0092
  182. #define HI251_SENSOR_ID 0x0084
  183. #define HI191MIPI_SENSOR_ID 0x0191
  184. #define HIVICF_SENSOR_ID 0x0081
  185. /*MT*/
  186. #define MT9D011_SENSOR_ID 0x1511
  187. #define MT9D111_SENSOR_ID 0x1511
  188. #define MT9D112_SENSOR_ID 0x1580
  189. #define MT9M011_SENSOR_ID 0x1433
  190. #define MT9M111_SENSOR_ID 0x143A
  191. #define MT9M112_SENSOR_ID 0x148C
  192. #define MT9M113_SENSOR_ID 0x2480
  193. #define MT9P012_SENSOR_ID 0x2800
  194. #define MT9P012_SENSOR_ID_REV7 0x2801
  195. #define MT9T012_SENSOR_ID 0x1600
  196. #define MT9T013_SENSOR_ID 0x2600
  197. #define MT9T113_SENSOR_ID 0x4680
  198. #define MT9V112_SENSOR_ID 0x1229
  199. #define MT9DX11_SENSOR_ID 0x1519
  200. #define MT9D113_SENSOR_ID 0x2580
  201. #define MT9D115_SENSOR_ID 0x2580
  202. #define MT9D115MIPI_SENSOR_ID 0x2580
  203. #define MT9V113_SENSOR_ID 0x2280
  204. #define MT9V114_SENSOR_ID 0x2283
  205. #define MT9V115_SENSOR_ID 0x2284
  206. #define MT9P015_SENSOR_ID 0x2803
  207. #define MT9P017_SENSOR_ID 0x4800
  208. #define MT9P017MIPI_SENSOR_ID 0x4800
  209. #define MT9T113MIPI_SENSOR_ID 0x4680
  210. /*GC*/
  211. #define GC2355_SENSOR_ID 0x2355
  212. #define GC2235_SENSOR_ID 0x2235
  213. #define GC2035_SENSOR_ID 0x2035
  214. #define GC2145_SENSOR_ID 0x2145
  215. #define GC0330_SENSOR_ID 0xC1
  216. #define GC0329_SENSOR_ID 0xC0
  217. #define GC0310_SENSOR_ID 0xa310
  218. #define GC0313MIPI_YUV_SENSOR_ID 0xD0
  219. #define GC0312_SENSOR_ID 0xb310
  220. /*SP*/
  221. #define SP0A19_YUV_SENSOR_ID 0xA6
  222. #define SP2518_YUV_SENSOR_ID 0x53
  223. /*A*/
  224. #define A5141MIPI_SENSOR_ID 0x4800
  225. #define A5142MIPI_SENSOR_ID 0x4800
  226. /*HM*/
  227. #define HM3451_SENSOR_ID 0x345
  228. /*AR*/
  229. #define AR0833_SENSOR_ID 0x4B03
  230. /*SIV*/
  231. #define SID020A_SENSOR_ID 0x12B4
  232. #define SIV100B_SENSOR_ID 0x0C11
  233. #define SIV100A_SENSOR_ID 0x0C10
  234. #define SIV120A_SENSOR_ID 0x1210
  235. #define SIV120B_SENSOR_ID 0x0012
  236. #define SIV121D_SENSOR_ID 0xDE
  237. #define SIM101B_SENSOR_ID 0x09A0
  238. #define SIM120C_SENSOR_ID 0x0012
  239. #define SID130B_SENSOR_ID 0x001b
  240. #define SIC110A_SENSOR_ID 0x000D
  241. #define SIV120B_SENSOR_ID 0x0012
  242. /*PAS (PixArt Image)*/
  243. #define PAS105_SENSOR_ID 0x0065
  244. #define PAS302_SENSOR_ID 0x0064
  245. #define PAS5101_SENSOR_ID 0x0067
  246. #define PAS6180_SENSOR_ID 0x6179
  247. /*Panasoic*/
  248. #define MN34152_SENSOR_ID 0x01
  249. /*Toshiba*/
  250. #define T4KA7_SENSOR_ID 0x2c30
  251. /*Others*/
  252. #define SHARP3D_SENSOR_ID 0x003d
  253. #define T8EV5_SENSOR_ID 0x1011
  254. /* CAMERA DRIVER NAME */
  255. #define CAMERA_HW_DEVNAME "kd_camera_hw"
  256. /* SENSOR DEVICE DRIVER NAME */
  257. #define SENSOR_DRVNAME_HM5040_MIPI_RAW "hm5040mipiraw"
  258. /*IMX*/
  259. #define SENSOR_DRVNAME_IMX377_MIPI_RAW "imx377mipiraw"
  260. #define SENSOR_DRVNAME_IMX278_MIPI_RAW "imx278mipiraw"
  261. #define SENSOR_DRVNAME_IMX258_MIPI_RAW "imx258mipiraw"
  262. #define SENSOR_DRVNAME_IMX230_MIPI_RAW "imx230mipiraw"
  263. #define SENSOR_DRVNAME_IMX220_MIPI_RAW "imx220mipiraw"
  264. #define SENSOR_DRVNAME_IMX219_MIPI_RAW "imx219mipiraw"
  265. #define SENSOR_DRVNAME_IMX215_MIPI_RAW "imx215mipiraw"
  266. #define SENSOR_DRVNAME_IMX214_MIPI_RAW "imx214mipiraw"
  267. #define SENSOR_DRVNAME_IMX179_MIPI_RAW "imx179mipiraw"
  268. #define SENSOR_DRVNAME_IMX178_MIPI_RAW "imx178mipiraw"
  269. #define SENSOR_DRVNAME_IMX135_MIPI_RAW "imx135mipiraw"
  270. #define SENSOR_DRVNAME_IMX132_MIPI_RAW "imx132mipiraw"
  271. #define SENSOR_DRVNAME_IMX119_MIPI_RAW "imx119mipiraw"
  272. #define SENSOR_DRVNAME_IMX105_MIPI_RAW "imx105mipiraw"
  273. #define SENSOR_DRVNAME_IMX091_MIPI_RAW "imx091mipiraw"
  274. #define SENSOR_DRVNAME_IMX073_MIPI_RAW "imx073mipiraw"
  275. /*OV*/
  276. #define SENSOR_DRVNAME_OV23850_MIPI_RAW "ov23850mipiraw"
  277. #define SENSOR_DRVNAME_OV16825_MIPI_RAW "ov16825mipiraw"
  278. #define SENSOR_DRVNAME_OV13850_MIPI_RAW "ov13850mipiraw"
  279. #define SENSOR_DRVNAME_OV12830_MIPI_RAW "ov12830mipiraw"
  280. #define SENSOR_DRVNAME_OV9760_MIPI_RAW "ov9760mipiraw"
  281. #define SENSOR_DRVNAME_OV9740_MIPI_YUV "ov9740mipiyuv"
  282. #define SENSOR_DRVNAME_0V9726_RAW "ov9726raw"
  283. #define SENSOR_DRVNAME_OV9726_MIPI_RAW "ov9726mipiraw"
  284. #define SENSOR_DRVNAME_OV8865_MIPI_RAW "ov8865mipiraw"
  285. #define SENSOR_DRVNAME_OV8858_MIPI_RAW "ov8858mipiraw"
  286. #define SENSOR_DRVNAME_OV8858S_MIPI_RAW "ov8858smipiraw"
  287. #define SENSOR_DRVNAME_OV8830_RAW "ov8830"
  288. #define SENSOR_DRVNAME_OV8825_MIPI_RAW "ov8825mipiraw"
  289. #define SENSOR_DRVNAME_OV7675_YUV "ov7675yuv"
  290. #define SENSOR_DRVNAME_OV5693_MIPI_RAW "ov5693mipi"
  291. #define SENSOR_DRVNAME_OV5670_MIPI_RAW "ov5670mipiraw"
  292. #define SENSOR_DRVNAME_OV5671_MIPI_RAW "ov5671mipiraw"
  293. #define SENSOR_DRVNAME_OV5647MIPI_RAW "ov5647mipiraw"
  294. #define SENSOR_DRVNAME_OV5645_MIPI_YUV "ov5645_mipi_yuv"
  295. #define SENSOR_DRVNAME_OV5650MIPI_RAW "ov5650mipiraw"
  296. #define SENSOR_DRVNAME_OV5650_RAW "ov5650raw"
  297. #define SENSOR_DRVNAME_OV5648_MIPI_RAW "ov5648mipi"
  298. #define SENSOR_DRVNAME_OV5647_RAW "ov5647"
  299. #define SENSOR_DRVNAME_OV5642_RAW "ov5642raw"
  300. #define SENSOR_DRVNAME_OV5642_MIPI_YUV "ov5642mipiyuv"
  301. #define SENSOR_DRVNAME_OV5642_MIPI_RGB "ov5642mipirgb"
  302. #define SENSOR_DRVNAME_OV5642_MIPI_JPG "ov5642mipijpg"
  303. #define SENSOR_DRVNAME_OV5642_YUV "ov5642yuv"
  304. #define SENSOR_DRVNAME_OV5642_YUV_SWI2C "ov5642yuvswi2c"
  305. #define SENSOR_DRVNAME_OV4688_MIPI_RAW "ov4688mipiraw"
  306. #define SENSOR_DRVNAME_OV3640_RAW "ov3640"
  307. #define SENSOR_DRVNAME_OV3640_YUV "ov3640yuv"
  308. #define SENSOR_DRVNAME_OV2724_MIPI_RAW "ov2724mipiraw"
  309. #define SENSOR_DRVNAME_OV2722_MIPI_RAW "ov2722mipiraw"
  310. #define SENSOR_DRVNAME_OV2680_MIPI_RAW "ov2680mipiraw"
  311. #define SENSOR_DRVNAME_OV2659_YUV "ov2659yuv"
  312. #define SENSOR_DRVNAME_OV2655_YUV "ov2655yuv"
  313. #define SENSOR_DRVNAME_OV2650_RAW "ov265x"
  314. /*S5K*/
  315. #define SENSOR_DRVNAME_S5K2X8_MIPI_RAW "s5k2x8mipiraw"
  316. #define SENSOR_DRVNAME_S5K2P8_MIPI_RAW "s5k2p8mipiraw"
  317. #define SENSOR_DRVNAME_S5K3M2_MIPI_RAW "s5k3m2mipiraw"
  318. #define SENSOR_DRVNAME_S5K3H2YX_MIPI_RAW "s5k3h2yxmipiraw"
  319. #define SENSOR_DRVNAME_S5K3H7Y_MIPI_RAW "s5k3h7ymipiraw"
  320. #define SENSOR_DRVNAME_S5K4H5YC_MIPI_RAW "s5k4h5ycmipiraw"
  321. #define SENSOR_DRVNAME_S5K4E1GA_MIPI_RAW "s5k4e1gamipiraw"
  322. #define SENSOR_DRVNAME_S5K4ECGX_MIPI_YUV "s5k4ecgxmipiyuv"
  323. #define SENSOR_DRVNAME_S5K5CAGX_YUV "s5k5cagxyuv"
  324. #define SENSOR_DRVNAME_S5K4H5YX_2LANE_MIPI_RAW "s5k4h5yx2lanemipiraw"
  325. #define SENSOR_DRVNAME_S5K5E2YA_MIPI_RAW "s5k5e2yamipiraw"
  326. #define SENSOR_DRVNAME_S5K8AAYX_MIPI_YUV "s5k8aayxmipiyuv"
  327. #define SENSOR_DRVNAME_S5K8AAYX_YUV "s5k8aayxyuv"
  328. /*HI*/
  329. #define SENSOR_DRVNAME_HI841_MIPI_RAW "hi841mipiraw"
  330. #define SENSOR_DRVNAME_HI707_YUV "hi707yuv"
  331. #define SENSOR_DRVNAME_HI704_YUV "hi704yuv"
  332. #define SENSOR_DRVNAME_HI551_MIPI_RAW "hi551mipiraw"
  333. #define SENSOR_DRVNAME_HI545_MIPI_RAW "hi545mipiraw"
  334. #define SENSOR_DRVNAME_HI542_RAW "hi542raw"
  335. #define SENSOR_DRVNAME_HI542MIPI_RAW "hi542mipiraw"
  336. #define SENSOR_DRVNAME_HI544_MIPI_RAW "hi544mipiraw"
  337. #define SENSOR_DRVNAME_HI253_YUV "hi253yuv"
  338. #define SENSOR_DRVNAME_HI191_MIPI_RAW "hi191mipiraw"
  339. /*MT*/
  340. #define SENSOR_DRVNAME_MT9P012_RAW "mt9p012"
  341. #define SENSOR_DRVNAME_MT9P015_RAW "mt9p015"
  342. #define SENSOR_DRVNAME_MT9P017_RAW "mt9p017"
  343. #define SENSOR_DRVNAME_MT9P017_MIPI_RAW "mt9p017mipi"
  344. #define SENSOR_DRVNAME_MT9D115_MIPI_RAW "mt9d115mipiraw"
  345. #define SENSOR_DRVNAME_MT9V114_YUV "mt9v114"
  346. #define SENSOR_DRVNAME_MT9V115_YUV "mt9v115yuv"
  347. #define SENSOR_DRVNAME_MT9T113_YUV "mt9t113yuv"
  348. #define SENSOR_DRVNAME_MT9V113_YUV "mt9v113yuv"
  349. #define SENSOR_DRVNAME_MT9T113_MIPI_YUV "mt9t113mipiyuv"
  350. /*GC*/
  351. #define SENSOR_DRVNAME_GC2035_YUV "gc2035_yuv"
  352. #define SENSOR_DRVNAME_GC2235_RAW "gc2235_raw"
  353. #define SENSOR_DRVNAME_GC2355_MIPI_RAW "gc2355mipiraw"
  354. #define SENSOR_DRVNAME_GC0330_YUV "gc0330_yuv"
  355. #define SENSOR_DRVNAME_GC0329_YUV "gc0329yuv"
  356. #define SENSOR_DRVNAME_GC2145_MIPI_YUV "gc2145mipiyuv"
  357. #define SENSOR_DRVNAME_GC0310_MIPI_YUV "gc0310mipiyuv"
  358. #define SENSOR_DRVNAME_GC0310_YUV "gc0310yuv"
  359. #define SENSOR_DRVNAME_GC0312_YUV "gc0312yuv"
  360. #define SENSOR_DRVNAME_GC0313MIPI_YUV "gc0313mipiyuv"
  361. /*SP*/
  362. #define SENSOR_DRVNAME_SP0A19_YUV "sp0a19yuv"
  363. #define SENSOR_DRVNAME_SP2518_YUV "sp2518yuv"
  364. /*A*/
  365. #define SENSOR_DRVNAME_A5141_MIPI_RAW "a5141mipiraw"
  366. #define SENSOR_DRVNAME_A5142_MIPI_RAW "a5142mipiraw"
  367. /*HM*/
  368. #define SENSOR_DRVNAME_HM3451_RAW "hm3451raw"
  369. /*AR*/
  370. #define SENSOR_DRVNAME_AR0833_MIPI_RAW "ar0833mipiraw"
  371. /*SIV*/
  372. #define SENSOR_DRVNAME_SIV121D_YUV "siv121dyuv"
  373. #define SENSOR_DRVNAME_SIV120B_YUV "siv120byuv"
  374. /*PAS (PixArt Image)*/
  375. #define SENSOR_DRVNAME_PAS6180_SERIAL_YUV "pas6180serialyuv"
  376. /*Panasoic*/
  377. #define SENSOR_DRVNAME_MN34152_MIPI_RAW "mn34152mipiraw"
  378. /*Toshiba*/
  379. #define SENSOR_DRVNAME_T4KA7_MIPI_RAW "t4ka7mipiraw"
  380. /*Others*/
  381. #define SENSOR_DRVNAME_SHARP3D_MIPI_YUV "sharp3dmipiyuv"
  382. #define SENSOR_DRVNAME_T8EV5_YUV "t8ev5_yuv"
  383. /*Test*/
  384. #define SENSOR_DRVNAME_IMX135_MIPI_RAW_5MP "imx135mipiraw5mp"
  385. /*******************************************************************************
  386. *
  387. ********************************************************************************/
  388. void KD_IMGSENSOR_PROFILE_INIT(void);
  389. void KD_IMGSENSOR_PROFILE(char *tag);
  390. #define mDELAY(ms) mdelay(ms)
  391. #define uDELAY(us) udelay(us)
  392. #endif /* _KD_IMGSENSOR_H */