Lines Matching +full:- +full:cfg

1 // SPDX-License-Identifier: GPL-2.0-only
11 #include "camif-regs.h"
13 #define camif_write(_camif, _off, _val) writel(_val, (_camif)->io_base + (_off))
14 #define camif_read(_camif, _off) readl((_camif)->io_base + (_off))
18 u32 cfg; in camif_hw_reset() local
20 cfg = camif_read(camif, S3C_CAMIF_REG_CISRCFMT); in camif_hw_reset()
21 cfg |= CISRCFMT_ITU601_8BIT; in camif_hw_reset()
22 camif_write(camif, S3C_CAMIF_REG_CISRCFMT, cfg); in camif_hw_reset()
25 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset()
26 cfg |= CIGCTRL_SWRST; in camif_hw_reset()
27 if (camif->variant->ip_revision == S3C6410_CAMIF_IP_REV) in camif_hw_reset()
28 cfg |= CIGCTRL_IRQ_LEVEL; in camif_hw_reset()
29 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_reset()
32 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_reset()
33 cfg &= ~CIGCTRL_SWRST; in camif_hw_reset()
34 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_reset()
40 u32 cfg = camif_read(vp->camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_clear_pending_irq() local
41 cfg |= CIGCTRL_IRQ_CLR(vp->id); in camif_hw_clear_pending_irq()
42 camif_write(vp->camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_clear_pending_irq()
51 u32 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_set_test_pattern() local
52 cfg &= ~CIGCTRL_TESTPATTERN_MASK; in camif_hw_set_test_pattern()
53 cfg |= (pattern << 27); in camif_hw_set_test_pattern()
54 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_set_test_pattern()
70 unsigned int i, cfg; in camif_hw_set_effect() local
79 cfg = camif_read(camif, S3C_CAMIF_REG_CIIMGEFF(camif->vp->offset)); in camif_hw_set_effect()
81 cfg &= ~CIIMGEFF_FIN_MASK; in camif_hw_set_effect()
82 cfg |= colorfx[i].value; in camif_hw_set_effect()
84 if (camif->variant->ip_revision >= S3C6400_CAMIF_IP_REV) { in camif_hw_set_effect()
86 cfg &= ~CIIMGEFF_IE_ENABLE_MASK; in camif_hw_set_effect()
88 cfg |= CIIMGEFF_IE_ENABLE_MASK; in camif_hw_set_effect()
90 cfg &= ~CIIMGEFF_PAT_CBCR_MASK; in camif_hw_set_effect()
91 cfg |= cr | (cb << 13); in camif_hw_set_effect()
92 camif_write(camif, S3C_CAMIF_REG_CIIMGEFF(camif->vp->offset), cfg); in camif_hw_set_effect()
105 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in camif_hw_set_source_format()
107 u32 cfg; in camif_hw_set_source_format() local
109 for (i = ARRAY_SIZE(src_pixfmt_map) - 1; i >= 0; i--) { in camif_hw_set_source_format()
110 if (src_pixfmt_map[i][0] == mf->code) in camif_hw_set_source_format()
115 dev_err(camif->dev, in camif_hw_set_source_format()
120 cfg = camif_read(camif, S3C_CAMIF_REG_CISRCFMT); in camif_hw_set_source_format()
121 cfg &= ~(CISRCFMT_ORDER422_MASK | CISRCFMT_SIZE_CAM_MASK); in camif_hw_set_source_format()
122 cfg |= (mf->width << 16) | mf->height; in camif_hw_set_source_format()
123 cfg |= src_pixfmt_map[i][1]; in camif_hw_set_source_format()
124 camif_write(camif, S3C_CAMIF_REG_CISRCFMT, cfg); in camif_hw_set_source_format()
130 struct v4l2_mbus_framefmt *mf = &camif->mbus_fmt; in camif_hw_set_camera_crop()
131 struct v4l2_rect *crop = &camif->camif_crop; in camif_hw_set_camera_crop()
133 u32 cfg; in camif_hw_set_camera_crop() local
135 /* Note: s3c244x requirement: left = f_width - rect.width / 2 */ in camif_hw_set_camera_crop()
136 cfg = camif_read(camif, S3C_CAMIF_REG_CIWDOFST); in camif_hw_set_camera_crop()
137 cfg &= ~(CIWDOFST_OFST_MASK | CIWDOFST_WINOFSEN); in camif_hw_set_camera_crop()
138 cfg |= (crop->left << 16) | crop->top; in camif_hw_set_camera_crop()
139 if (crop->left != 0 || crop->top != 0) in camif_hw_set_camera_crop()
140 cfg |= CIWDOFST_WINOFSEN; in camif_hw_set_camera_crop()
141 camif_write(camif, S3C_CAMIF_REG_CIWDOFST, cfg); in camif_hw_set_camera_crop()
143 if (camif->variant->ip_revision == S3C6410_CAMIF_IP_REV) { in camif_hw_set_camera_crop()
144 hoff2 = mf->width - crop->width - crop->left; in camif_hw_set_camera_crop()
145 voff2 = mf->height - crop->height - crop->top; in camif_hw_set_camera_crop()
146 cfg = (hoff2 << 16) | voff2; in camif_hw_set_camera_crop()
147 camif_write(camif, S3C_CAMIF_REG_CIWDOFST2, cfg); in camif_hw_set_camera_crop()
153 struct camif_dev *camif = vp->camif; in camif_hw_clear_fifo_overflow()
154 u32 cfg; in camif_hw_clear_fifo_overflow() local
156 cfg = camif_read(camif, S3C_CAMIF_REG_CIWDOFST); in camif_hw_clear_fifo_overflow()
157 if (vp->id == 0) in camif_hw_clear_fifo_overflow()
158 cfg |= (CIWDOFST_CLROVCOFIY | CIWDOFST_CLROVCOFICB | in camif_hw_clear_fifo_overflow()
161 cfg |= (/* CIWDOFST_CLROVPRFIY | */ CIWDOFST_CLROVPRFICB | in camif_hw_clear_fifo_overflow()
163 camif_write(camif, S3C_CAMIF_REG_CIWDOFST, cfg); in camif_hw_clear_fifo_overflow()
169 unsigned int flags = camif->pdata.sensor.flags; in camif_hw_set_camera_bus()
171 u32 cfg = camif_read(camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_set_camera_bus() local
173 cfg &= ~(CIGCTRL_INVPOLPCLK | CIGCTRL_INVPOLVSYNC | in camif_hw_set_camera_bus()
177 cfg |= CIGCTRL_INVPOLPCLK; in camif_hw_set_camera_bus()
180 cfg |= CIGCTRL_INVPOLVSYNC; in camif_hw_set_camera_bus()
187 cfg |= CIGCTRL_INVPOLHREF; /* HREF active low */ in camif_hw_set_camera_bus()
189 if (camif->variant->ip_revision == S3C6410_CAMIF_IP_REV) { in camif_hw_set_camera_bus()
191 cfg |= CIGCTRL_INVPOLFIELD; in camif_hw_set_camera_bus()
192 cfg |= CIGCTRL_FIELDMODE; in camif_hw_set_camera_bus()
195 pr_debug("Setting CIGCTRL to: %#x\n", cfg); in camif_hw_set_camera_bus()
197 camif_write(camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_set_camera_bus()
203 struct camif_dev *camif = vp->camif; in camif_hw_set_output_addr()
205 camif_write(camif, S3C_CAMIF_REG_CIYSA(vp->id, i), paddr->y); in camif_hw_set_output_addr()
206 if (camif->variant->ip_revision == S3C6410_CAMIF_IP_REV in camif_hw_set_output_addr()
207 || vp->id == VP_CODEC) { in camif_hw_set_output_addr()
208 camif_write(camif, S3C_CAMIF_REG_CICBSA(vp->id, i), in camif_hw_set_output_addr()
209 paddr->cb); in camif_hw_set_output_addr()
210 camif_write(camif, S3C_CAMIF_REG_CICRSA(vp->id, i), in camif_hw_set_output_addr()
211 paddr->cr); in camif_hw_set_output_addr()
215 i, &paddr->y, &paddr->cb, &paddr->cr); in camif_hw_set_output_addr()
220 struct camif_frame *frame = &vp->out_frame; in camif_hw_set_out_dma_size()
221 u32 cfg; in camif_hw_set_out_dma_size() local
223 cfg = camif_read(vp->camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset)); in camif_hw_set_out_dma_size()
224 cfg &= ~CITRGFMT_TARGETSIZE_MASK; in camif_hw_set_out_dma_size()
225 cfg |= (frame->f_width << 16) | frame->f_height; in camif_hw_set_out_dma_size()
226 camif_write(vp->camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset), cfg); in camif_hw_set_out_dma_size()
241 rem = nwords & (div - 1); in camif_get_dma_burst()
257 struct camif_dev *camif = vp->camif; in camif_hw_set_output_dma()
258 struct camif_frame *frame = &vp->out_frame; in camif_hw_set_output_dma()
259 const struct camif_fmt *fmt = vp->out_fmt; in camif_hw_set_output_dma()
261 u32 cfg; in camif_hw_set_output_dma() local
265 if (camif->variant->ip_revision == S3C6410_CAMIF_IP_REV) { in camif_hw_set_output_dma()
266 struct camif_dma_offset *offset = &frame->dma_offset; in camif_hw_set_output_dma()
268 cfg = S3C_CISS_OFFS_INITIAL(offset->initial); in camif_hw_set_output_dma()
269 cfg |= S3C_CISS_OFFS_LINE(offset->line); in camif_hw_set_output_dma()
270 camif_write(camif, S3C_CAMIF_REG_CISSY(vp->id), cfg); in camif_hw_set_output_dma()
271 camif_write(camif, S3C_CAMIF_REG_CISSCB(vp->id), cfg); in camif_hw_set_output_dma()
272 camif_write(camif, S3C_CAMIF_REG_CISSCR(vp->id), cfg); in camif_hw_set_output_dma()
276 camif_get_dma_burst(frame->rect.width, fmt->ybpp, &ymburst, &yrburst); in camif_hw_set_output_dma()
278 cfg = camif_read(camif, S3C_CAMIF_REG_CICTRL(vp->id, vp->offset)); in camif_hw_set_output_dma()
279 cfg &= ~CICTRL_BURST_MASK; in camif_hw_set_output_dma()
281 cfg |= CICTRL_YBURST1(ymburst) | CICTRL_YBURST2(yrburst); in camif_hw_set_output_dma()
282 cfg |= CICTRL_CBURST1(ymburst / 2) | CICTRL_CBURST2(yrburst / 2); in camif_hw_set_output_dma()
284 camif_write(camif, S3C_CAMIF_REG_CICTRL(vp->id, vp->offset), cfg); in camif_hw_set_output_dma()
291 u32 cfg = camif_read(vp->camif, S3C_CAMIF_REG_MSCTRL(vp->id)); in camif_hw_set_input_path() local
292 cfg &= ~MSCTRL_SEL_DMA_CAM; in camif_hw_set_input_path()
293 camif_write(vp->camif, S3C_CAMIF_REG_MSCTRL(vp->id), cfg); in camif_hw_set_input_path()
298 struct camif_dev *camif = vp->camif; in camif_hw_set_target_format()
299 struct camif_frame *frame = &vp->out_frame; in camif_hw_set_target_format()
300 u32 cfg; in camif_hw_set_target_format() local
302 pr_debug("fw: %d, fh: %d color: %d\n", frame->f_width, in camif_hw_set_target_format()
303 frame->f_height, vp->out_fmt->color); in camif_hw_set_target_format()
305 cfg = camif_read(camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset)); in camif_hw_set_target_format()
306 cfg &= ~CITRGFMT_TARGETSIZE_MASK; in camif_hw_set_target_format()
308 if (camif->variant->ip_revision == S3C244X_CAMIF_IP_REV) { in camif_hw_set_target_format()
310 cfg |= CITRGFMT_IN422; in camif_hw_set_target_format()
311 cfg &= ~CITRGFMT_OUT422; in camif_hw_set_target_format()
312 if (vp->out_fmt->color == IMG_FMT_YCBCR422P) in camif_hw_set_target_format()
313 cfg |= CITRGFMT_OUT422; in camif_hw_set_target_format()
315 cfg &= ~CITRGFMT_OUTFORMAT_MASK; in camif_hw_set_target_format()
316 switch (vp->out_fmt->color) { in camif_hw_set_target_format()
318 cfg |= CITRGFMT_OUTFORMAT_RGB; in camif_hw_set_target_format()
321 cfg |= CITRGFMT_OUTFORMAT_YCBCR420; in camif_hw_set_target_format()
324 cfg |= CITRGFMT_OUTFORMAT_YCBCR422; in camif_hw_set_target_format()
327 cfg |= CITRGFMT_OUTFORMAT_YCBCR422I; in camif_hw_set_target_format()
333 if (vp->rotation == 90 || vp->rotation == 270) in camif_hw_set_target_format()
334 cfg |= (frame->f_height << 16) | frame->f_width; in camif_hw_set_target_format()
336 cfg |= (frame->f_width << 16) | frame->f_height; in camif_hw_set_target_format()
337 camif_write(camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset), cfg); in camif_hw_set_target_format()
340 cfg = camif_read(camif, S3C_CAMIF_REG_CITAREA(vp->id, vp->offset)); in camif_hw_set_target_format()
341 cfg &= ~CITAREA_MASK; in camif_hw_set_target_format()
342 cfg |= (frame->f_width * frame->f_height); in camif_hw_set_target_format()
343 camif_write(camif, S3C_CAMIF_REG_CITAREA(vp->id, vp->offset), cfg); in camif_hw_set_target_format()
348 u32 cfg = camif_read(vp->camif, in camif_hw_set_flip() local
349 S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset)); in camif_hw_set_flip()
351 cfg &= ~CITRGFMT_FLIP_MASK; in camif_hw_set_flip()
353 if (vp->hflip) in camif_hw_set_flip()
354 cfg |= CITRGFMT_FLIP_Y_MIRROR; in camif_hw_set_flip()
355 if (vp->vflip) in camif_hw_set_flip()
356 cfg |= CITRGFMT_FLIP_X_MIRROR; in camif_hw_set_flip()
358 camif_write(vp->camif, S3C_CAMIF_REG_CITRGFMT(vp->id, vp->offset), cfg); in camif_hw_set_flip()
363 struct camif_dev *camif = vp->camif; in camif_hw_set_prescaler()
364 struct camif_scaler *sc = &vp->scaler; in camif_hw_set_prescaler()
365 u32 cfg, shfactor, addr; in camif_hw_set_prescaler() local
367 addr = S3C_CAMIF_REG_CISCPRERATIO(vp->id, vp->offset); in camif_hw_set_prescaler()
369 shfactor = 10 - (sc->h_shift + sc->v_shift); in camif_hw_set_prescaler()
370 cfg = shfactor << 28; in camif_hw_set_prescaler()
372 cfg |= (sc->pre_h_ratio << 16) | sc->pre_v_ratio; in camif_hw_set_prescaler()
373 camif_write(camif, addr, cfg); in camif_hw_set_prescaler()
375 cfg = (sc->pre_dst_width << 16) | sc->pre_dst_height; in camif_hw_set_prescaler()
376 camif_write(camif, S3C_CAMIF_REG_CISCPREDST(vp->id, vp->offset), cfg); in camif_hw_set_prescaler()
381 struct camif_dev *camif = vp->camif; in camif_s3c244x_hw_set_scaler()
382 struct camif_scaler *scaler = &vp->scaler; in camif_s3c244x_hw_set_scaler()
383 unsigned int color = vp->out_fmt->color; in camif_s3c244x_hw_set_scaler()
384 u32 cfg; in camif_s3c244x_hw_set_scaler() local
388 cfg = camif_read(camif, S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset)); in camif_s3c244x_hw_set_scaler()
390 cfg &= ~(CISCCTRL_SCALEUP_MASK | CISCCTRL_SCALERBYPASS | in camif_s3c244x_hw_set_scaler()
393 if (scaler->enable) { in camif_s3c244x_hw_set_scaler()
394 if (scaler->scaleup_h) { in camif_s3c244x_hw_set_scaler()
395 if (vp->id == VP_CODEC) in camif_s3c244x_hw_set_scaler()
396 cfg |= CISCCTRL_SCALEUP_H; in camif_s3c244x_hw_set_scaler()
398 cfg |= CIPRSCCTRL_SCALEUP_H; in camif_s3c244x_hw_set_scaler()
400 if (scaler->scaleup_v) { in camif_s3c244x_hw_set_scaler()
401 if (vp->id == VP_CODEC) in camif_s3c244x_hw_set_scaler()
402 cfg |= CISCCTRL_SCALEUP_V; in camif_s3c244x_hw_set_scaler()
404 cfg |= CIPRSCCTRL_SCALEUP_V; in camif_s3c244x_hw_set_scaler()
407 if (vp->id == VP_CODEC) in camif_s3c244x_hw_set_scaler()
408 cfg |= CISCCTRL_SCALERBYPASS; in camif_s3c244x_hw_set_scaler()
411 cfg |= ((scaler->main_h_ratio & 0x1ff) << 16); in camif_s3c244x_hw_set_scaler()
412 cfg |= scaler->main_v_ratio & 0x1ff; in camif_s3c244x_hw_set_scaler()
414 if (vp->id == VP_PREVIEW) { in camif_s3c244x_hw_set_scaler()
416 cfg |= CIPRSCCTRL_RGB_FORMAT_24BIT; in camif_s3c244x_hw_set_scaler()
417 cfg |= CIPRSCCTRL_SAMPLE; in camif_s3c244x_hw_set_scaler()
420 camif_write(camif, S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset), cfg); in camif_s3c244x_hw_set_scaler()
423 scaler->main_h_ratio, scaler->main_v_ratio); in camif_s3c244x_hw_set_scaler()
428 struct camif_dev *camif = vp->camif; in camif_s3c64xx_hw_set_scaler()
429 struct camif_scaler *scaler = &vp->scaler; in camif_s3c64xx_hw_set_scaler()
430 unsigned int color = vp->out_fmt->color; in camif_s3c64xx_hw_set_scaler()
431 u32 cfg; in camif_s3c64xx_hw_set_scaler() local
435 cfg = camif_read(camif, S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset)); in camif_s3c64xx_hw_set_scaler()
437 cfg &= ~(CISCCTRL_CSCR2Y_WIDE | CISCCTRL_CSCY2R_WIDE in camif_s3c64xx_hw_set_scaler()
444 cfg |= (CISCCTRL_CSCR2Y_WIDE | CISCCTRL_CSCY2R_WIDE); in camif_s3c64xx_hw_set_scaler()
446 if (!scaler->enable) { in camif_s3c64xx_hw_set_scaler()
447 cfg |= CISCCTRL_SCALERBYPASS; in camif_s3c64xx_hw_set_scaler()
449 if (scaler->scaleup_h) in camif_s3c64xx_hw_set_scaler()
450 cfg |= CISCCTRL_SCALEUP_H; in camif_s3c64xx_hw_set_scaler()
451 if (scaler->scaleup_v) in camif_s3c64xx_hw_set_scaler()
452 cfg |= CISCCTRL_SCALEUP_V; in camif_s3c64xx_hw_set_scaler()
453 if (scaler->copy) in camif_s3c64xx_hw_set_scaler()
454 cfg |= CISCCTRL_ONE2ONE; in camif_s3c64xx_hw_set_scaler()
459 cfg |= CISCCTRL_OUTRGB_FMT_RGB666; in camif_s3c64xx_hw_set_scaler()
462 cfg |= CISCCTRL_OUTRGB_FMT_RGB888; in camif_s3c64xx_hw_set_scaler()
466 cfg |= (scaler->main_h_ratio & 0x1ff) << 16; in camif_s3c64xx_hw_set_scaler()
467 cfg |= scaler->main_v_ratio & 0x1ff; in camif_s3c64xx_hw_set_scaler()
469 camif_write(camif, S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset), cfg); in camif_s3c64xx_hw_set_scaler()
472 scaler->main_h_ratio, scaler->main_v_ratio); in camif_s3c64xx_hw_set_scaler()
477 unsigned int ip_rev = vp->camif->variant->ip_revision; in camif_hw_set_scaler()
487 u32 addr = S3C_CAMIF_REG_CISCCTRL(vp->id, vp->offset); in camif_hw_enable_scaler()
488 u32 cfg; in camif_hw_enable_scaler() local
490 cfg = camif_read(vp->camif, addr); in camif_hw_enable_scaler()
492 cfg |= CISCCTRL_SCALERSTART; in camif_hw_enable_scaler()
494 cfg &= ~CISCCTRL_SCALERSTART; in camif_hw_enable_scaler()
495 camif_write(vp->camif, addr, cfg); in camif_hw_enable_scaler()
500 u32 addr = S3C_CAMIF_REG_CICTRL(vp->id, vp->offset); in camif_hw_set_lastirq()
501 u32 cfg; in camif_hw_set_lastirq() local
503 cfg = camif_read(vp->camif, addr); in camif_hw_set_lastirq()
505 cfg |= CICTRL_LASTIRQ_ENABLE; in camif_hw_set_lastirq()
507 cfg &= ~CICTRL_LASTIRQ_ENABLE; in camif_hw_set_lastirq()
508 camif_write(vp->camif, addr, cfg); in camif_hw_set_lastirq()
513 struct camif_dev *camif = vp->camif; in camif_hw_enable_capture()
514 u32 cfg; in camif_hw_enable_capture() local
516 cfg = camif_read(camif, S3C_CAMIF_REG_CIIMGCPT(vp->offset)); in camif_hw_enable_capture()
517 camif->stream_count++; in camif_hw_enable_capture()
519 if (camif->variant->ip_revision == S3C6410_CAMIF_IP_REV) in camif_hw_enable_capture()
520 cfg |= CIIMGCPT_CPT_FREN_ENABLE(vp->id); in camif_hw_enable_capture()
522 if (vp->scaler.enable) in camif_hw_enable_capture()
523 cfg |= CIIMGCPT_IMGCPTEN_SC(vp->id); in camif_hw_enable_capture()
525 if (camif->stream_count == 1) in camif_hw_enable_capture()
526 cfg |= CIIMGCPT_IMGCPTEN; in camif_hw_enable_capture()
528 camif_write(camif, S3C_CAMIF_REG_CIIMGCPT(vp->offset), cfg); in camif_hw_enable_capture()
530 pr_debug("CIIMGCPT: %#x, camif->stream_count: %d\n", in camif_hw_enable_capture()
531 cfg, camif->stream_count); in camif_hw_enable_capture()
536 struct camif_dev *camif = vp->camif; in camif_hw_disable_capture()
537 u32 cfg; in camif_hw_disable_capture() local
539 cfg = camif_read(camif, S3C_CAMIF_REG_CIIMGCPT(vp->offset)); in camif_hw_disable_capture()
540 cfg &= ~CIIMGCPT_IMGCPTEN_SC(vp->id); in camif_hw_disable_capture()
542 if (WARN_ON(--(camif->stream_count) < 0)) in camif_hw_disable_capture()
543 camif->stream_count = 0; in camif_hw_disable_capture()
545 if (camif->stream_count == 0) in camif_hw_disable_capture()
546 cfg &= ~CIIMGCPT_IMGCPTEN; in camif_hw_disable_capture()
548 pr_debug("CIIMGCPT: %#x, camif->stream_count: %d\n", in camif_hw_disable_capture()
549 cfg, camif->stream_count); in camif_hw_disable_capture()
551 camif_write(camif, S3C_CAMIF_REG_CIIMGCPT(vp->offset), cfg); in camif_hw_disable_capture()
598 pr_info("--- %s ---\n", label); in camif_hw_dump_regs()
600 u32 cfg = readl(camif->io_base + registers[i].offset); in camif_hw_dump_regs() local
601 dev_info(camif->dev, "%s:\t0x%08x\n", registers[i].name, cfg); in camif_hw_dump_regs()