fimc-reg.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. /*
  2. * Samsung camera host interface (FIMC) registers definition
  3. *
  4. * Copyright (C) 2010 - 2012 Samsung Electronics Co., Ltd.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef FIMC_REG_H_
  11. #define FIMC_REG_H_
  12. #include "fimc-core.h"
  13. /* Input source format */
  14. #define FIMC_REG_CISRCFMT 0x00
  15. #define FIMC_REG_CISRCFMT_ITU601_8BIT (1 << 31)
  16. #define FIMC_REG_CISRCFMT_ITU601_16BIT (1 << 29)
  17. #define FIMC_REG_CISRCFMT_ORDER422_YCBYCR (0 << 14)
  18. #define FIMC_REG_CISRCFMT_ORDER422_YCRYCB (1 << 14)
  19. #define FIMC_REG_CISRCFMT_ORDER422_CBYCRY (2 << 14)
  20. #define FIMC_REG_CISRCFMT_ORDER422_CRYCBY (3 << 14)
  21. /* Window offset */
  22. #define FIMC_REG_CIWDOFST 0x04
  23. #define FIMC_REG_CIWDOFST_OFF_EN (1 << 31)
  24. #define FIMC_REG_CIWDOFST_CLROVFIY (1 << 30)
  25. #define FIMC_REG_CIWDOFST_CLROVRLB (1 << 29)
  26. #define FIMC_REG_CIWDOFST_HOROFF_MASK (0x7ff << 16)
  27. #define FIMC_REG_CIWDOFST_CLROVFICB (1 << 15)
  28. #define FIMC_REG_CIWDOFST_CLROVFICR (1 << 14)
  29. #define FIMC_REG_CIWDOFST_VEROFF_MASK (0xfff << 0)
  30. /* Global control */
  31. #define FIMC_REG_CIGCTRL 0x08
  32. #define FIMC_REG_CIGCTRL_SWRST (1 << 31)
  33. #define FIMC_REG_CIGCTRL_CAMRST_A (1 << 30)
  34. #define FIMC_REG_CIGCTRL_SELCAM_ITU_A (1 << 29)
  35. #define FIMC_REG_CIGCTRL_TESTPAT_NORMAL (0 << 27)
  36. #define FIMC_REG_CIGCTRL_TESTPAT_COLOR_BAR (1 << 27)
  37. #define FIMC_REG_CIGCTRL_TESTPAT_HOR_INC (2 << 27)
  38. #define FIMC_REG_CIGCTRL_TESTPAT_VER_INC (3 << 27)
  39. #define FIMC_REG_CIGCTRL_TESTPAT_MASK (3 << 27)
  40. #define FIMC_REG_CIGCTRL_TESTPAT_SHIFT 27
  41. #define FIMC_REG_CIGCTRL_INVPOLPCLK (1 << 26)
  42. #define FIMC_REG_CIGCTRL_INVPOLVSYNC (1 << 25)
  43. #define FIMC_REG_CIGCTRL_INVPOLHREF (1 << 24)
  44. #define FIMC_REG_CIGCTRL_IRQ_OVFEN (1 << 22)
  45. #define FIMC_REG_CIGCTRL_HREF_MASK (1 << 21)
  46. #define FIMC_REG_CIGCTRL_IRQ_LEVEL (1 << 20)
  47. #define FIMC_REG_CIGCTRL_IRQ_CLR (1 << 19)
  48. #define FIMC_REG_CIGCTRL_IRQ_ENABLE (1 << 16)
  49. #define FIMC_REG_CIGCTRL_SHDW_DISABLE (1 << 12)
  50. /* 0 - selects Writeback A (LCD), 1 - selects Writeback B (LCD/ISP) */
  51. #define FIMC_REG_CIGCTRL_SELWB_A (1 << 10)
  52. #define FIMC_REG_CIGCTRL_CAM_JPEG (1 << 8)
  53. #define FIMC_REG_CIGCTRL_SELCAM_MIPI_A (1 << 7)
  54. #define FIMC_REG_CIGCTRL_CAMIF_SELWB (1 << 6)
  55. /* 0 - ITU601; 1 - ITU709 */
  56. #define FIMC_REG_CIGCTRL_CSC_ITU601_709 (1 << 5)
  57. #define FIMC_REG_CIGCTRL_INVPOLHSYNC (1 << 4)
  58. #define FIMC_REG_CIGCTRL_SELCAM_MIPI (1 << 3)
  59. #define FIMC_REG_CIGCTRL_INVPOLFIELD (1 << 1)
  60. #define FIMC_REG_CIGCTRL_INTERLACE (1 << 0)
  61. /* Window offset 2 */
  62. #define FIMC_REG_CIWDOFST2 0x14
  63. #define FIMC_REG_CIWDOFST2_HOROFF_MASK (0xfff << 16)
  64. #define FIMC_REG_CIWDOFST2_VEROFF_MASK (0xfff << 0)
  65. /* Output DMA Y/Cb/Cr plane start addresses */
  66. #define FIMC_REG_CIOYSA(n) (0x18 + (n) * 4)
  67. #define FIMC_REG_CIOCBSA(n) (0x28 + (n) * 4)
  68. #define FIMC_REG_CIOCRSA(n) (0x38 + (n) * 4)
  69. /* Target image format */
  70. #define FIMC_REG_CITRGFMT 0x48
  71. #define FIMC_REG_CITRGFMT_INROT90 (1 << 31)
  72. #define FIMC_REG_CITRGFMT_YCBCR420 (0 << 29)
  73. #define FIMC_REG_CITRGFMT_YCBCR422 (1 << 29)
  74. #define FIMC_REG_CITRGFMT_YCBCR422_1P (2 << 29)
  75. #define FIMC_REG_CITRGFMT_RGB (3 << 29)
  76. #define FIMC_REG_CITRGFMT_FMT_MASK (3 << 29)
  77. #define FIMC_REG_CITRGFMT_HSIZE_MASK (0xfff << 16)
  78. #define FIMC_REG_CITRGFMT_FLIP_SHIFT 14
  79. #define FIMC_REG_CITRGFMT_FLIP_NORMAL (0 << 14)
  80. #define FIMC_REG_CITRGFMT_FLIP_X_MIRROR (1 << 14)
  81. #define FIMC_REG_CITRGFMT_FLIP_Y_MIRROR (2 << 14)
  82. #define FIMC_REG_CITRGFMT_FLIP_180 (3 << 14)
  83. #define FIMC_REG_CITRGFMT_FLIP_MASK (3 << 14)
  84. #define FIMC_REG_CITRGFMT_OUTROT90 (1 << 13)
  85. #define FIMC_REG_CITRGFMT_VSIZE_MASK (0xfff << 0)
  86. /* Output DMA control */
  87. #define FIMC_REG_CIOCTRL 0x4c
  88. #define FIMC_REG_CIOCTRL_ORDER422_MASK (3 << 0)
  89. #define FIMC_REG_CIOCTRL_ORDER422_YCBYCR (0 << 0)
  90. #define FIMC_REG_CIOCTRL_ORDER422_YCRYCB (1 << 0)
  91. #define FIMC_REG_CIOCTRL_ORDER422_CBYCRY (2 << 0)
  92. #define FIMC_REG_CIOCTRL_ORDER422_CRYCBY (3 << 0)
  93. #define FIMC_REG_CIOCTRL_LASTIRQ_ENABLE (1 << 2)
  94. #define FIMC_REG_CIOCTRL_YCBCR_3PLANE (0 << 3)
  95. #define FIMC_REG_CIOCTRL_YCBCR_2PLANE (1 << 3)
  96. #define FIMC_REG_CIOCTRL_YCBCR_PLANE_MASK (1 << 3)
  97. #define FIMC_REG_CIOCTRL_ALPHA_OUT_MASK (0xff << 4)
  98. #define FIMC_REG_CIOCTRL_RGB16FMT_MASK (3 << 16)
  99. #define FIMC_REG_CIOCTRL_RGB565 (0 << 16)
  100. #define FIMC_REG_CIOCTRL_ARGB1555 (1 << 16)
  101. #define FIMC_REG_CIOCTRL_ARGB4444 (2 << 16)
  102. #define FIMC_REG_CIOCTRL_ORDER2P_SHIFT 24
  103. #define FIMC_REG_CIOCTRL_ORDER2P_MASK (3 << 24)
  104. #define FIMC_REG_CIOCTRL_ORDER422_2P_LSB_CRCB (0 << 24)
  105. /* Pre-scaler control 1 */
  106. #define FIMC_REG_CISCPRERATIO 0x50
  107. #define FIMC_REG_CISCPREDST 0x54
  108. /* Main scaler control */
  109. #define FIMC_REG_CISCCTRL 0x58
  110. #define FIMC_REG_CISCCTRL_SCALERBYPASS (1 << 31)
  111. #define FIMC_REG_CISCCTRL_SCALEUP_H (1 << 30)
  112. #define FIMC_REG_CISCCTRL_SCALEUP_V (1 << 29)
  113. #define FIMC_REG_CISCCTRL_CSCR2Y_WIDE (1 << 28)
  114. #define FIMC_REG_CISCCTRL_CSCY2R_WIDE (1 << 27)
  115. #define FIMC_REG_CISCCTRL_LCDPATHEN_FIFO (1 << 26)
  116. #define FIMC_REG_CISCCTRL_INTERLACE (1 << 25)
  117. #define FIMC_REG_CISCCTRL_SCALERSTART (1 << 15)
  118. #define FIMC_REG_CISCCTRL_INRGB_FMT_RGB565 (0 << 13)
  119. #define FIMC_REG_CISCCTRL_INRGB_FMT_RGB666 (1 << 13)
  120. #define FIMC_REG_CISCCTRL_INRGB_FMT_RGB888 (2 << 13)
  121. #define FIMC_REG_CISCCTRL_INRGB_FMT_MASK (3 << 13)
  122. #define FIMC_REG_CISCCTRL_OUTRGB_FMT_RGB565 (0 << 11)
  123. #define FIMC_REG_CISCCTRL_OUTRGB_FMT_RGB666 (1 << 11)
  124. #define FIMC_REG_CISCCTRL_OUTRGB_FMT_RGB888 (2 << 11)
  125. #define FIMC_REG_CISCCTRL_OUTRGB_FMT_MASK (3 << 11)
  126. #define FIMC_REG_CISCCTRL_RGB_EXT (1 << 10)
  127. #define FIMC_REG_CISCCTRL_ONE2ONE (1 << 9)
  128. #define FIMC_REG_CISCCTRL_MHRATIO(x) ((x) << 16)
  129. #define FIMC_REG_CISCCTRL_MVRATIO(x) ((x) << 0)
  130. #define FIMC_REG_CISCCTRL_MHRATIO_MASK (0x1ff << 16)
  131. #define FIMC_REG_CISCCTRL_MVRATIO_MASK (0x1ff << 0)
  132. #define FIMC_REG_CISCCTRL_MHRATIO_EXT(x) (((x) >> 6) << 16)
  133. #define FIMC_REG_CISCCTRL_MVRATIO_EXT(x) (((x) >> 6) << 0)
  134. /* Target area */
  135. #define FIMC_REG_CITAREA 0x5c
  136. #define FIMC_REG_CITAREA_MASK 0x0fffffff
  137. /* General status */
  138. #define FIMC_REG_CISTATUS 0x64
  139. #define FIMC_REG_CISTATUS_OVFIY (1 << 31)
  140. #define FIMC_REG_CISTATUS_OVFICB (1 << 30)
  141. #define FIMC_REG_CISTATUS_OVFICR (1 << 29)
  142. #define FIMC_REG_CISTATUS_VSYNC (1 << 28)
  143. #define FIMC_REG_CISTATUS_FRAMECNT_MASK (3 << 26)
  144. #define FIMC_REG_CISTATUS_FRAMECNT_SHIFT 26
  145. #define FIMC_REG_CISTATUS_WINOFF_EN (1 << 25)
  146. #define FIMC_REG_CISTATUS_IMGCPT_EN (1 << 22)
  147. #define FIMC_REG_CISTATUS_IMGCPT_SCEN (1 << 21)
  148. #define FIMC_REG_CISTATUS_VSYNC_A (1 << 20)
  149. #define FIMC_REG_CISTATUS_VSYNC_B (1 << 19)
  150. #define FIMC_REG_CISTATUS_OVRLB (1 << 18)
  151. #define FIMC_REG_CISTATUS_FRAME_END (1 << 17)
  152. #define FIMC_REG_CISTATUS_LASTCAPT_END (1 << 16)
  153. #define FIMC_REG_CISTATUS_VVALID_A (1 << 15)
  154. #define FIMC_REG_CISTATUS_VVALID_B (1 << 14)
  155. /* Indexes to the last and the currently processed buffer. */
  156. #define FIMC_REG_CISTATUS2 0x68
  157. /* Image capture control */
  158. #define FIMC_REG_CIIMGCPT 0xc0
  159. #define FIMC_REG_CIIMGCPT_IMGCPTEN (1 << 31)
  160. #define FIMC_REG_CIIMGCPT_IMGCPTEN_SC (1 << 30)
  161. #define FIMC_REG_CIIMGCPT_CPT_FREN_ENABLE (1 << 25)
  162. #define FIMC_REG_CIIMGCPT_CPT_FRMOD_CNT (1 << 18)
  163. /* Frame capture sequence */
  164. #define FIMC_REG_CICPTSEQ 0xc4
  165. /* Image effect */
  166. #define FIMC_REG_CIIMGEFF 0xd0
  167. #define FIMC_REG_CIIMGEFF_IE_ENABLE (1 << 30)
  168. #define FIMC_REG_CIIMGEFF_IE_SC_BEFORE (0 << 29)
  169. #define FIMC_REG_CIIMGEFF_IE_SC_AFTER (1 << 29)
  170. #define FIMC_REG_CIIMGEFF_FIN_BYPASS (0 << 26)
  171. #define FIMC_REG_CIIMGEFF_FIN_ARBITRARY (1 << 26)
  172. #define FIMC_REG_CIIMGEFF_FIN_NEGATIVE (2 << 26)
  173. #define FIMC_REG_CIIMGEFF_FIN_ARTFREEZE (3 << 26)
  174. #define FIMC_REG_CIIMGEFF_FIN_EMBOSSING (4 << 26)
  175. #define FIMC_REG_CIIMGEFF_FIN_SILHOUETTE (5 << 26)
  176. #define FIMC_REG_CIIMGEFF_FIN_MASK (7 << 26)
  177. #define FIMC_REG_CIIMGEFF_PAT_CBCR_MASK ((0xff << 13) | 0xff)
  178. /* Input DMA Y/Cb/Cr plane start address 0/1 */
  179. #define FIMC_REG_CIIYSA(n) (0xd4 + (n) * 0x70)
  180. #define FIMC_REG_CIICBSA(n) (0xd8 + (n) * 0x70)
  181. #define FIMC_REG_CIICRSA(n) (0xdc + (n) * 0x70)
  182. /* Real input DMA image size */
  183. #define FIMC_REG_CIREAL_ISIZE 0xf8
  184. #define FIMC_REG_CIREAL_ISIZE_AUTOLOAD_EN (1 << 31)
  185. #define FIMC_REG_CIREAL_ISIZE_ADDR_CH_DIS (1 << 30)
  186. /* Input DMA control */
  187. #define FIMC_REG_MSCTRL 0xfc
  188. #define FIMC_REG_MSCTRL_IN_BURST_COUNT_MASK (0xf << 24)
  189. #define FIMC_REG_MSCTRL_2P_IN_ORDER_MASK (3 << 16)
  190. #define FIMC_REG_MSCTRL_2P_IN_ORDER_SHIFT 16
  191. #define FIMC_REG_MSCTRL_C_INT_IN_3PLANE (0 << 15)
  192. #define FIMC_REG_MSCTRL_C_INT_IN_2PLANE (1 << 15)
  193. #define FIMC_REG_MSCTRL_C_INT_IN_MASK (1 << 15)
  194. #define FIMC_REG_MSCTRL_FLIP_SHIFT 13
  195. #define FIMC_REG_MSCTRL_FLIP_MASK (3 << 13)
  196. #define FIMC_REG_MSCTRL_FLIP_NORMAL (0 << 13)
  197. #define FIMC_REG_MSCTRL_FLIP_X_MIRROR (1 << 13)
  198. #define FIMC_REG_MSCTRL_FLIP_Y_MIRROR (2 << 13)
  199. #define FIMC_REG_MSCTRL_FLIP_180 (3 << 13)
  200. #define FIMC_REG_MSCTRL_FIFO_CTRL_FULL (1 << 12)
  201. #define FIMC_REG_MSCTRL_ORDER422_SHIFT 4
  202. #define FIMC_REG_MSCTRL_ORDER422_CRYCBY (0 << 4)
  203. #define FIMC_REG_MSCTRL_ORDER422_YCRYCB (1 << 4)
  204. #define FIMC_REG_MSCTRL_ORDER422_CBYCRY (2 << 4)
  205. #define FIMC_REG_MSCTRL_ORDER422_YCBYCR (3 << 4)
  206. #define FIMC_REG_MSCTRL_ORDER422_MASK (3 << 4)
  207. #define FIMC_REG_MSCTRL_INPUT_EXTCAM (0 << 3)
  208. #define FIMC_REG_MSCTRL_INPUT_MEMORY (1 << 3)
  209. #define FIMC_REG_MSCTRL_INPUT_MASK (1 << 3)
  210. #define FIMC_REG_MSCTRL_INFORMAT_YCBCR420 (0 << 1)
  211. #define FIMC_REG_MSCTRL_INFORMAT_YCBCR422 (1 << 1)
  212. #define FIMC_REG_MSCTRL_INFORMAT_YCBCR422_1P (2 << 1)
  213. #define FIMC_REG_MSCTRL_INFORMAT_RGB (3 << 1)
  214. #define FIMC_REG_MSCTRL_INFORMAT_MASK (3 << 1)
  215. #define FIMC_REG_MSCTRL_ENVID (1 << 0)
  216. #define FIMC_REG_MSCTRL_IN_BURST_COUNT(x) ((x) << 24)
  217. /* Output DMA Y/Cb/Cr offset */
  218. #define FIMC_REG_CIOYOFF 0x168
  219. #define FIMC_REG_CIOCBOFF 0x16c
  220. #define FIMC_REG_CIOCROFF 0x170
  221. /* Input DMA Y/Cb/Cr offset */
  222. #define FIMC_REG_CIIYOFF 0x174
  223. #define FIMC_REG_CIICBOFF 0x178
  224. #define FIMC_REG_CIICROFF 0x17c
  225. /* Input DMA original image size */
  226. #define FIMC_REG_ORGISIZE 0x180
  227. /* Output DMA original image size */
  228. #define FIMC_REG_ORGOSIZE 0x184
  229. /* Real output DMA image size (extension register) */
  230. #define FIMC_REG_CIEXTEN 0x188
  231. #define FIMC_REG_CIEXTEN_MHRATIO_EXT(x) (((x) & 0x3f) << 10)
  232. #define FIMC_REG_CIEXTEN_MVRATIO_EXT(x) ((x) & 0x3f)
  233. #define FIMC_REG_CIEXTEN_MHRATIO_EXT_MASK (0x3f << 10)
  234. #define FIMC_REG_CIEXTEN_MVRATIO_EXT_MASK 0x3f
  235. #define FIMC_REG_CIDMAPARAM 0x18c
  236. #define FIMC_REG_CIDMAPARAM_R_LINEAR (0 << 29)
  237. #define FIMC_REG_CIDMAPARAM_R_64X32 (3 << 29)
  238. #define FIMC_REG_CIDMAPARAM_W_LINEAR (0 << 13)
  239. #define FIMC_REG_CIDMAPARAM_W_64X32 (3 << 13)
  240. #define FIMC_REG_CIDMAPARAM_TILE_MASK ((3 << 29) | (3 << 13))
  241. /* MIPI CSI image format */
  242. #define FIMC_REG_CSIIMGFMT 0x194
  243. #define FIMC_REG_CSIIMGFMT_YCBCR422_8BIT 0x1e
  244. #define FIMC_REG_CSIIMGFMT_RAW8 0x2a
  245. #define FIMC_REG_CSIIMGFMT_RAW10 0x2b
  246. #define FIMC_REG_CSIIMGFMT_RAW12 0x2c
  247. /* User defined formats. x = 0...16. */
  248. #define FIMC_REG_CSIIMGFMT_USER(x) (0x30 + x - 1)
  249. /* Output frame buffer sequence mask */
  250. #define FIMC_REG_CIFCNTSEQ 0x1fc
  251. /* SYSREG ISP Writeback register address offsets */
  252. #define SYSREG_ISPBLK 0x020c
  253. #define SYSREG_ISPBLK_FIFORST_CAM_BLK (1 << 7)
  254. #define SYSREG_CAMBLK 0x0218
  255. #define SYSREG_CAMBLK_FIFORST_ISP (1 << 15)
  256. #define SYSREG_CAMBLK_ISPWB_FULL_EN (7 << 20)
  257. /*
  258. * Function declarations
  259. */
  260. void fimc_hw_reset(struct fimc_dev *fimc);
  261. void fimc_hw_set_rotation(struct fimc_ctx *ctx);
  262. void fimc_hw_set_target_format(struct fimc_ctx *ctx);
  263. void fimc_hw_set_out_dma(struct fimc_ctx *ctx);
  264. void fimc_hw_en_lastirq(struct fimc_dev *fimc, int enable);
  265. void fimc_hw_en_irq(struct fimc_dev *fimc, int enable);
  266. void fimc_hw_set_prescaler(struct fimc_ctx *ctx);
  267. void fimc_hw_set_mainscaler(struct fimc_ctx *ctx);
  268. void fimc_hw_enable_capture(struct fimc_ctx *ctx);
  269. void fimc_hw_set_effect(struct fimc_ctx *ctx);
  270. void fimc_hw_set_rgb_alpha(struct fimc_ctx *ctx);
  271. void fimc_hw_set_in_dma(struct fimc_ctx *ctx);
  272. void fimc_hw_set_input_path(struct fimc_ctx *ctx);
  273. void fimc_hw_set_output_path(struct fimc_ctx *ctx);
  274. void fimc_hw_set_input_addr(struct fimc_dev *fimc, struct fimc_addr *paddr);
  275. void fimc_hw_set_output_addr(struct fimc_dev *fimc, struct fimc_addr *paddr,
  276. int index);
  277. int fimc_hw_set_camera_source(struct fimc_dev *fimc,
  278. struct fimc_source_info *cam);
  279. void fimc_hw_set_camera_offset(struct fimc_dev *fimc, struct fimc_frame *f);
  280. int fimc_hw_set_camera_polarity(struct fimc_dev *fimc,
  281. struct fimc_source_info *cam);
  282. int fimc_hw_set_camera_type(struct fimc_dev *fimc,
  283. struct fimc_source_info *cam);
  284. void fimc_hw_clear_irq(struct fimc_dev *dev);
  285. void fimc_hw_enable_scaler(struct fimc_dev *dev, bool on);
  286. void fimc_hw_activate_input_dma(struct fimc_dev *dev, bool on);
  287. void fimc_hw_disable_capture(struct fimc_dev *dev);
  288. s32 fimc_hw_get_frame_index(struct fimc_dev *dev);
  289. s32 fimc_hw_get_prev_frame_index(struct fimc_dev *dev);
  290. int fimc_hw_camblk_cfg_writeback(struct fimc_dev *fimc);
  291. void fimc_activate_capture(struct fimc_ctx *ctx);
  292. void fimc_deactivate_capture(struct fimc_dev *fimc);
  293. /**
  294. * fimc_hw_set_dma_seq - configure output DMA buffer sequence
  295. * @mask: bitmask for the DMA output buffer registers, set to 0 to skip buffer
  296. * This function masks output DMA ring buffers, it allows to select which of
  297. * the 32 available output buffer address registers will be used by the DMA
  298. * engine.
  299. */
  300. static inline void fimc_hw_set_dma_seq(struct fimc_dev *dev, u32 mask)
  301. {
  302. writel(mask, dev->regs + FIMC_REG_CIFCNTSEQ);
  303. }
  304. #endif /* FIMC_REG_H_ */