Lines Matching +full:0 +full:x34

19  * id = 0 - codec (FIMC C), 1 - preview (FIMC P).
23 #define S3C_CAMIF_REG_CISRCFMT 0x00
25 #define CISRCFMT_ITU656_8BIT (0 << 31)
26 #define CISRCFMT_ORDER422_YCBYCR (0 << 14)
31 #define CISRCFMT_SIZE_CAM_MASK (0x1fff << 16 | 0x1fff)
34 #define S3C_CAMIF_REG_CIWDOFST 0x04
43 #define CIWDOFST_OFST_MASK (0x7ff << 16 | 0x7ff)
46 #define S3C_CAMIF_REG_CIWDOFST2 0x14
47 #define CIWDOFST2_OFST2_MASK (0xfff << 16 | 0xfff)
50 #define S3C_CAMIF_REG_CIGCTRL 0x08
53 #define CIGCTRL_TESTPATTERN_NORMAL (0 << 27)
68 #define CIGCTRL_CAM_INTERLACE BIT(0)
70 /* Y DMA output frame start address. n = 0..3. */
71 #define S3C_CAMIF_REG_CIYSA(id, n) (0x18 + (id) * 0x54 + (n) * 4)
72 /* Cb plane output DMA start address. n = 0..3. Only codec path. */
73 #define S3C_CAMIF_REG_CICBSA(id, n) (0x28 + (id) * 0x54 + (n) * 4)
74 /* Cr plane output DMA start address. n = 0..3. Only codec path. */
75 #define S3C_CAMIF_REG_CICRSA(id, n) (0x38 + (id) * 0x54 + (n) * 4)
78 #define S3C_CAMIF_REG_CITRGFMT(id, _offs) (0x48 + (id) * (0x34 + (_offs)))
81 #define CITRGFMT_OUTFORMAT_YCBCR420 (0 << 29) /* only for s3c6410 */
87 #define CITRGFMT_FLIP_NORMAL (0 << 14)
94 #define CITRGFMT_TARGETVSIZE(x) ((x) << 0)
95 #define CITRGFMT_TARGETSIZE_MASK ((0x1fff << 16) | 0x1fff)
98 #define S3C_CAMIF_REG_CICTRL(id, _offs) (0x4c + (id) * (0x34 + (_offs)))
99 #define CICTRL_BURST_MASK (0xfffff << 4)
108 #define CICTRL_ORDER422_MASK (3 << 0)
111 #define S3C_CAMIF_REG_CISCPRERATIO(id, _offs) (0x50 + (id) * (0x34 + (_offs)))
114 #define S3C_CAMIF_REG_CISCPREDST(id, _offs) (0x54 + (id) * (0x34 + (_offs)))
117 #define S3C_CAMIF_REG_CISCCTRL(id, _offs) (0x58 + (id) * (0x34 + (_offs)))
121 /* 0 - 16-bit RGB, 1 - 24-bit RGB */
128 #define CISCCTRL_SCALEUP_MASK (0x3 << 29)
134 #define CISCCTRL_INRGB_FMT_RGB565 (0 << 13)
138 #define CISCCTRL_OUTRGB_FMT_RGB565 (0 << 11)
144 #define CISCCTRL_MAIN_RATIO_MASK (0x1ff << 16 | 0x1ff)
147 #define S3C_CAMIF_REG_CITAREA(id, _offs) (0x5c + (id) * (0x34 + (_offs)))
148 #define CITAREA_MASK 0xfffffff
150 /* Codec (id = 0) or preview (id = 1) path status. */
151 #define S3C_CAMIF_REG_CISTATUS(id, _offs) (0x64 + (id) * (0x34 + (_offs)))
155 #define CISTATUS_OVF_MASK (0x7 << 29)
156 #define CIPRSTATUS_OVF_MASK (0x3 << 30)
159 #define CISTATUS_FRAMECNT(__reg) (((__reg) >> 26) & 0x3)
167 #define S3C_CAMIF_REG_CIIMGCPT(_offs) (0xa0 + (_offs))
170 /* Frame control: 1 - one-shot, 0 - free run */
172 #define CIIMGCPT_CPT_FRMOD_ENABLE (0 << 18)
176 #define S3C_CAMIF_REG_CICPTSEQ 0xc4
179 #define S3C_CAMIF_REG_CIIMGEFF(_offs) (0xb0 + (_offs))
182 /* Image effect: 1 - after scaler, 0 - before scaler */
185 #define CIIMGEFF_FIN_BYPASS (0 << 26)
191 #define CIIMGEFF_PAT_CBCR_MASK ((0xff << 13) | 0xff)
196 #define S3C_CAMIF_REG_MSY0SA(id) (0xd4 + ((id) * 0x2c))
197 #define S3C_CAMIF_REG_MSCB0SA(id) (0xd8 + ((id) * 0x2c))
198 #define S3C_CAMIF_REG_MSCR0SA(id) (0xdc + ((id) * 0x2c))
201 #define S3C_CAMIF_REG_MSY0END(id) (0xe0 + ((id) * 0x2c))
202 #define S3C_CAMIF_REG_MSCB0END(id) (0xe4 + ((id) * 0x2c))
203 #define S3C_CAMIF_REG_MSCR0END(id) (0xe8 + ((id) * 0x2c))
205 /* MSPRYOFF, MSPRYOFF. Y/Cb/Cr offset. n: 0 - codec, 1 - preview. */
206 #define S3C_CAMIF_REG_MSYOFF(id) (0x118 + ((id) * 0x2c))
207 #define S3C_CAMIF_REG_MSCBOFF(id) (0x11c + ((id) * 0x2c))
208 #define S3C_CAMIF_REG_MSCROFF(id) (0x120 + ((id) * 0x2c))
210 /* Real input DMA data size. n = 0 - codec, 1 - preview. */
211 #define S3C_CAMIF_REG_MSWIDTH(id) (0xf8 + (id) * 0x2c)
214 #define MSHEIGHT(x) (((x) & 0x3ff) << 16)
215 #define MSWIDTH(x) ((x) & 0x3ff)
217 /* Input DMA control. n = 0 - codec, 1 - preview */
218 #define S3C_CAMIF_REG_MSCTRL(id) (0xfc + (id) * 0x2c)
219 #define MSCTRL_ORDER422_M_YCBYCR (0 << 4)
223 /* 0 - camera, 1 - DMA */
225 #define MSCTRL_INFORMAT_M_YCBCR420 (0 << 1)
229 #define MSCTRL_ENVID_M BIT(0)
232 #define S3C_CAMIF_REG_CISSY(id) (0x12c + (id) * 0x0c)
233 #define S3C_CAMIF_REG_CISSCB(id) (0x130 + (id) * 0x0c)
234 #define S3C_CAMIF_REG_CISSCR(id) (0x134 + (id) * 0x0c)
236 #define S3C_CISS_OFFS_LINE(x) ((x) << 0)