aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-12-18 09:15:50 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-30 06:40:17 -0500
commit5ca11fa3e0025864df930d6d97470b87c35919ed (patch)
tree526c16ba84aeb1dfa222aee80ef7382870f26d1a
parent8a787b40ecf29e5d8cc95bf9f12986862d230d8e (diff)
V4L/DVB: pxa-camera: use memory mapped IO access for camera (QCI) registers
Signed-off-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/pxa_camera.c202
1 files changed, 162 insertions, 40 deletions
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c
index 97923e1bd06d..45040f99031d 100644
--- a/drivers/media/video/pxa_camera.c
+++ b/drivers/media/video/pxa_camera.c
@@ -42,6 +42,101 @@
42#define PXA_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5) 42#define PXA_CAM_VERSION_CODE KERNEL_VERSION(0, 0, 5)
43#define PXA_CAM_DRV_NAME "pxa27x-camera" 43#define PXA_CAM_DRV_NAME "pxa27x-camera"
44 44
45/* Camera Interface */
46#define CICR0 0x0000
47#define CICR1 0x0004
48#define CICR2 0x0008
49#define CICR3 0x000C
50#define CICR4 0x0010
51#define CISR 0x0014
52#define CIFR 0x0018
53#define CITOR 0x001C
54#define CIBR0 0x0028
55#define CIBR1 0x0030
56#define CIBR2 0x0038
57
58#define CICR0_DMAEN (1 << 31) /* DMA request enable */
59#define CICR0_PAR_EN (1 << 30) /* Parity enable */
60#define CICR0_SL_CAP_EN (1 << 29) /* Capture enable for slave mode */
61#define CICR0_ENB (1 << 28) /* Camera interface enable */
62#define CICR0_DIS (1 << 27) /* Camera interface disable */
63#define CICR0_SIM (0x7 << 24) /* Sensor interface mode mask */
64#define CICR0_TOM (1 << 9) /* Time-out mask */
65#define CICR0_RDAVM (1 << 8) /* Receive-data-available mask */
66#define CICR0_FEM (1 << 7) /* FIFO-empty mask */
67#define CICR0_EOLM (1 << 6) /* End-of-line mask */
68#define CICR0_PERRM (1 << 5) /* Parity-error mask */
69#define CICR0_QDM (1 << 4) /* Quick-disable mask */
70#define CICR0_CDM (1 << 3) /* Disable-done mask */
71#define CICR0_SOFM (1 << 2) /* Start-of-frame mask */
72#define CICR0_EOFM (1 << 1) /* End-of-frame mask */
73#define CICR0_FOM (1 << 0) /* FIFO-overrun mask */
74
75#define CICR1_TBIT (1 << 31) /* Transparency bit */
76#define CICR1_RGBT_CONV (0x3 << 29) /* RGBT conversion mask */
77#define CICR1_PPL (0x7ff << 15) /* Pixels per line mask */
78#define CICR1_RGB_CONV (0x7 << 12) /* RGB conversion mask */
79#define CICR1_RGB_F (1 << 11) /* RGB format */
80#define CICR1_YCBCR_F (1 << 10) /* YCbCr format */
81#define CICR1_RGB_BPP (0x7 << 7) /* RGB bis per pixel mask */
82#define CICR1_RAW_BPP (0x3 << 5) /* Raw bis per pixel mask */
83#define CICR1_COLOR_SP (0x3 << 3) /* Color space mask */
84#define CICR1_DW (0x7 << 0) /* Data width mask */
85
86#define CICR2_BLW (0xff << 24) /* Beginning-of-line pixel clock
87 wait count mask */
88#define CICR2_ELW (0xff << 16) /* End-of-line pixel clock
89 wait count mask */
90#define CICR2_HSW (0x3f << 10) /* Horizontal sync pulse width mask */
91#define CICR2_BFPW (0x3f << 3) /* Beginning-of-frame pixel clock
92 wait count mask */
93#define CICR2_FSW (0x7 << 0) /* Frame stabilization
94 wait count mask */
95
96#define CICR3_BFW (0xff << 24) /* Beginning-of-frame line clock
97 wait count mask */
98#define CICR3_EFW (0xff << 16) /* End-of-frame line clock
99 wait count mask */
100#define CICR3_VSW (0x3f << 10) /* Vertical sync pulse width mask */
101#define CICR3_BFPW (0x3f << 3) /* Beginning-of-frame pixel clock
102 wait count mask */
103#define CICR3_LPF (0x7ff << 0) /* Lines per frame mask */
104
105#define CICR4_MCLK_DLY (0x3 << 24) /* MCLK Data Capture Delay mask */
106#define CICR4_PCLK_EN (1 << 23) /* Pixel clock enable */
107#define CICR4_PCP (1 << 22) /* Pixel clock polarity */
108#define CICR4_HSP (1 << 21) /* Horizontal sync polarity */
109#define CICR4_VSP (1 << 20) /* Vertical sync polarity */
110#define CICR4_MCLK_EN (1 << 19) /* MCLK enable */
111#define CICR4_FR_RATE (0x7 << 8) /* Frame rate mask */
112#define CICR4_DIV (0xff << 0) /* Clock divisor mask */
113
114#define CISR_FTO (1 << 15) /* FIFO time-out */
115#define CISR_RDAV_2 (1 << 14) /* Channel 2 receive data available */
116#define CISR_RDAV_1 (1 << 13) /* Channel 1 receive data available */
117#define CISR_RDAV_0 (1 << 12) /* Channel 0 receive data available */
118#define CISR_FEMPTY_2 (1 << 11) /* Channel 2 FIFO empty */
119#define CISR_FEMPTY_1 (1 << 10) /* Channel 1 FIFO empty */
120#define CISR_FEMPTY_0 (1 << 9) /* Channel 0 FIFO empty */
121#define CISR_EOL (1 << 8) /* End of line */
122#define CISR_PAR_ERR (1 << 7) /* Parity error */
123#define CISR_CQD (1 << 6) /* Camera interface quick disable */
124#define CISR_CDD (1 << 5) /* Camera interface disable done */
125#define CISR_SOF (1 << 4) /* Start of frame */
126#define CISR_EOF (1 << 3) /* End of frame */
127#define CISR_IFO_2 (1 << 2) /* FIFO overrun for Channel 2 */
128#define CISR_IFO_1 (1 << 1) /* FIFO overrun for Channel 1 */
129#define CISR_IFO_0 (1 << 0) /* FIFO overrun for Channel 0 */
130
131#define CIFR_FLVL2 (0x7f << 23) /* FIFO 2 level mask */
132#define CIFR_FLVL1 (0x7f << 16) /* FIFO 1 level mask */
133#define CIFR_FLVL0 (0xff << 8) /* FIFO 0 level mask */
134#define CIFR_THL_0 (0x3 << 4) /* Threshold Level for Channel 0 FIFO */
135#define CIFR_RESET_F (1 << 3) /* Reset input FIFOs */
136#define CIFR_FEN2 (1 << 2) /* FIFO enable for channel 2 */
137#define CIFR_FEN1 (1 << 1) /* FIFO enable for channel 1 */
138#define CIFR_FEN0 (1 << 0) /* FIFO enable for channel 0 */
139
45#define CICR0_SIM_MP (0 << 24) 140#define CICR0_SIM_MP (0 << 24)
46#define CICR0_SIM_SP (1 << 24) 141#define CICR0_SIM_SP (1 << 24)
47#define CICR0_SIM_MS (2 << 24) 142#define CICR0_SIM_MS (2 << 24)
@@ -385,7 +480,10 @@ static void pxa_videobuf_queue(struct videobuf_queue *vq,
385 active = pcdev->active; 480 active = pcdev->active;
386 481
387 if (!active) { 482 if (!active) {
388 CIFR |= CIFR_RESET_F; 483 unsigned long cifr, cicr0;
484
485 cifr = __raw_readl(pcdev->base + CIFR) | CIFR_RESET_F;
486 __raw_writel(cifr, pcdev->base + CIFR);
389 487
390 for (i = 0; i < pcdev->channels; i++) { 488 for (i = 0; i < pcdev->channels; i++) {
391 DDADR(pcdev->dma_chans[i]) = buf->dmas[i].sg_dma; 489 DDADR(pcdev->dma_chans[i]) = buf->dmas[i].sg_dma;
@@ -394,7 +492,9 @@ static void pxa_videobuf_queue(struct videobuf_queue *vq,
394 } 492 }
395 493
396 pcdev->active = buf; 494 pcdev->active = buf;
397 CICR0 |= CICR0_ENB; 495
496 cicr0 = __raw_readl(pcdev->base + CICR0) | CICR0_ENB;
497 __raw_writel(cicr0, pcdev->base + CICR0);
398 } else { 498 } else {
399 struct pxa_cam_dma *buf_dma; 499 struct pxa_cam_dma *buf_dma;
400 struct pxa_cam_dma *act_dma; 500 struct pxa_cam_dma *act_dma;
@@ -478,6 +578,8 @@ static void pxa_camera_wakeup(struct pxa_camera_dev *pcdev,
478 struct videobuf_buffer *vb, 578 struct videobuf_buffer *vb,
479 struct pxa_buffer *buf) 579 struct pxa_buffer *buf)
480{ 580{
581 unsigned long cicr0;
582
481 /* _init is used to debug races, see comment in pxa_camera_reqbufs() */ 583 /* _init is used to debug races, see comment in pxa_camera_reqbufs() */
482 list_del_init(&vb->queue); 584 list_del_init(&vb->queue);
483 vb->state = VIDEOBUF_DONE; 585 vb->state = VIDEOBUF_DONE;
@@ -490,7 +592,9 @@ static void pxa_camera_wakeup(struct pxa_camera_dev *pcdev,
490 DCSR(pcdev->dma_chans[0]) = 0; 592 DCSR(pcdev->dma_chans[0]) = 0;
491 DCSR(pcdev->dma_chans[1]) = 0; 593 DCSR(pcdev->dma_chans[1]) = 0;
492 DCSR(pcdev->dma_chans[2]) = 0; 594 DCSR(pcdev->dma_chans[2]) = 0;
493 CICR0 &= ~CICR0_ENB; 595
596 cicr0 = __raw_readl(pcdev->base + CICR0) & ~CICR0_ENB;
597 __raw_writel(cicr0, pcdev->base + CICR0);
494 return; 598 return;
495 } 599 }
496 600
@@ -505,6 +609,7 @@ static void pxa_camera_dma_irq(int channel, struct pxa_camera_dev *pcdev,
505 unsigned long flags; 609 unsigned long flags;
506 u32 status, camera_status, overrun; 610 u32 status, camera_status, overrun;
507 struct videobuf_buffer *vb; 611 struct videobuf_buffer *vb;
612 unsigned long cifr, cicr0;
508 613
509 spin_lock_irqsave(&pcdev->lock, flags); 614 spin_lock_irqsave(&pcdev->lock, flags);
510 615
@@ -527,22 +632,26 @@ static void pxa_camera_dma_irq(int channel, struct pxa_camera_dev *pcdev,
527 goto out; 632 goto out;
528 } 633 }
529 634
530 camera_status = CISR; 635 camera_status = __raw_readl(pcdev->base + CISR);
531 overrun = CISR_IFO_0; 636 overrun = CISR_IFO_0;
532 if (pcdev->channels == 3) 637 if (pcdev->channels == 3)
533 overrun |= CISR_IFO_1 | CISR_IFO_2; 638 overrun |= CISR_IFO_1 | CISR_IFO_2;
534 if (camera_status & overrun) { 639 if (camera_status & overrun) {
535 dev_dbg(pcdev->dev, "FIFO overrun! CISR: %x\n", camera_status); 640 dev_dbg(pcdev->dev, "FIFO overrun! CISR: %x\n", camera_status);
536 /* Stop the Capture Interface */ 641 /* Stop the Capture Interface */
537 CICR0 &= ~CICR0_ENB; 642 cicr0 = __raw_readl(pcdev->base + CICR0) & ~CICR0_ENB;
643 __raw_writel(cicr0, pcdev->base + CICR0);
644
538 /* Stop DMA */ 645 /* Stop DMA */
539 DCSR(channel) = 0; 646 DCSR(channel) = 0;
540 /* Reset the FIFOs */ 647 /* Reset the FIFOs */
541 CIFR |= CIFR_RESET_F; 648 cifr = __raw_readl(pcdev->base + CIFR) | CIFR_RESET_F;
649 __raw_writel(cifr, pcdev->base + CIFR);
542 /* Enable End-Of-Frame Interrupt */ 650 /* Enable End-Of-Frame Interrupt */
543 CICR0 &= ~CICR0_EOFM; 651 cicr0 &= ~CICR0_EOFM;
652 __raw_writel(cicr0, pcdev->base + CICR0);
544 /* Restart the Capture Interface */ 653 /* Restart the Capture Interface */
545 CICR0 |= CICR0_ENB; 654 __raw_writel(cicr0 | CICR0_ENB, pcdev->base + CICR0);
546 goto out; 655 goto out;
547 } 656 }
548 657
@@ -629,7 +738,8 @@ static void pxa_camera_activate(struct pxa_camera_dev *pcdev)
629 pdata->init(pcdev->dev); 738 pdata->init(pcdev->dev);
630 } 739 }
631 740
632 CICR0 = 0x3FF; /* disable all interrupts */ 741 /* disable all interrupts */
742 __raw_writel(0x3ff, pcdev->base + CICR0);
633 743
634 if (pcdev->platform_flags & PXA_CAMERA_PCLK_EN) 744 if (pcdev->platform_flags & PXA_CAMERA_PCLK_EN)
635 cicr4 |= CICR4_PCLK_EN; 745 cicr4 |= CICR4_PCLK_EN;
@@ -642,7 +752,8 @@ static void pxa_camera_activate(struct pxa_camera_dev *pcdev)
642 if (pcdev->platform_flags & PXA_CAMERA_VSP) 752 if (pcdev->platform_flags & PXA_CAMERA_VSP)
643 cicr4 |= CICR4_VSP; 753 cicr4 |= CICR4_VSP;
644 754
645 CICR4 = mclk_get_divisor(pcdev) | cicr4; 755 cicr4 |= mclk_get_divisor(pcdev);
756 __raw_writel(cicr4, pcdev->base + CICR4);
646 757
647 clk_enable(pcdev->clk); 758 clk_enable(pcdev->clk);
648} 759}
@@ -655,14 +766,15 @@ static void pxa_camera_deactivate(struct pxa_camera_dev *pcdev)
655static irqreturn_t pxa_camera_irq(int irq, void *data) 766static irqreturn_t pxa_camera_irq(int irq, void *data)
656{ 767{
657 struct pxa_camera_dev *pcdev = data; 768 struct pxa_camera_dev *pcdev = data;
658 unsigned int status = CISR; 769 unsigned long status, cicr0;
659 770
660 dev_dbg(pcdev->dev, "Camera interrupt status 0x%x\n", status); 771 status = __raw_readl(pcdev->base + CISR);
772 dev_dbg(pcdev->dev, "Camera interrupt status 0x%lx\n", status);
661 773
662 if (!status) 774 if (!status)
663 return IRQ_NONE; 775 return IRQ_NONE;
664 776
665 CISR = status; 777 __raw_writel(status, pcdev->base + CISR);
666 778
667 if (status & CISR_EOF) { 779 if (status & CISR_EOF) {
668 int i; 780 int i;
@@ -671,7 +783,8 @@ static irqreturn_t pxa_camera_irq(int irq, void *data)
671 pcdev->active->dmas[i].sg_dma; 783 pcdev->active->dmas[i].sg_dma;
672 DCSR(pcdev->dma_chans[i]) = DCSR_RUN; 784 DCSR(pcdev->dma_chans[i]) = DCSR_RUN;
673 } 785 }
674 CICR0 |= CICR0_EOFM; 786 cicr0 = __raw_readl(pcdev->base + CICR0) | CICR0_EOFM;
787 __raw_writel(cicr0, pcdev->base + CICR0);
675 } 788 }
676 789
677 return IRQ_HANDLED; 790 return IRQ_HANDLED;
@@ -718,7 +831,7 @@ static void pxa_camera_remove_device(struct soc_camera_device *icd)
718 icd->devnum); 831 icd->devnum);
719 832
720 /* disable capture, disable interrupts */ 833 /* disable capture, disable interrupts */
721 CICR0 = 0x3ff; 834 __raw_writel(0x3ff, pcdev->base + CICR0);
722 835
723 /* Stop DMA engine */ 836 /* Stop DMA engine */
724 DCSR(pcdev->dma_chans[0]) = 0; 837 DCSR(pcdev->dma_chans[0]) = 0;
@@ -779,7 +892,7 @@ static int pxa_camera_set_bus_param(struct soc_camera_device *icd, __u32 pixfmt)
779 to_soc_camera_host(icd->dev.parent); 892 to_soc_camera_host(icd->dev.parent);
780 struct pxa_camera_dev *pcdev = ici->priv; 893 struct pxa_camera_dev *pcdev = ici->priv;
781 unsigned long dw, bpp, bus_flags, camera_flags, common_flags; 894 unsigned long dw, bpp, bus_flags, camera_flags, common_flags;
782 u32 cicr0, cicr1, cicr4 = 0; 895 u32 cicr0, cicr1, cicr2, cicr3, cicr4 = 0;
783 int ret = test_platform_param(pcdev, icd->buswidth, &bus_flags); 896 int ret = test_platform_param(pcdev, icd->buswidth, &bus_flags);
784 897
785 if (ret < 0) 898 if (ret < 0)
@@ -852,9 +965,9 @@ static int pxa_camera_set_bus_param(struct soc_camera_device *icd, __u32 pixfmt)
852 if (common_flags & SOCAM_VSYNC_ACTIVE_LOW) 965 if (common_flags & SOCAM_VSYNC_ACTIVE_LOW)
853 cicr4 |= CICR4_VSP; 966 cicr4 |= CICR4_VSP;
854 967
855 cicr0 = CICR0; 968 cicr0 = __raw_readl(pcdev->base + CICR0);
856 if (cicr0 & CICR0_ENB) 969 if (cicr0 & CICR0_ENB)
857 CICR0 = cicr0 & ~CICR0_ENB; 970 __raw_writel(cicr0 & ~CICR0_ENB, pcdev->base + CICR0);
858 971
859 cicr1 = CICR1_PPL_VAL(icd->width - 1) | bpp | dw; 972 cicr1 = CICR1_PPL_VAL(icd->width - 1) | bpp | dw;
860 973
@@ -884,16 +997,21 @@ static int pxa_camera_set_bus_param(struct soc_camera_device *icd, __u32 pixfmt)
884 break; 997 break;
885 } 998 }
886 999
887 CICR1 = cicr1; 1000 cicr2 = 0;
888 CICR2 = 0; 1001 cicr3 = CICR3_LPF_VAL(icd->height - 1) |
889 CICR3 = CICR3_LPF_VAL(icd->height - 1) |
890 CICR3_BFW_VAL(min((unsigned short)255, icd->y_skip_top)); 1002 CICR3_BFW_VAL(min((unsigned short)255, icd->y_skip_top));
891 CICR4 = mclk_get_divisor(pcdev) | cicr4; 1003 cicr4 |= mclk_get_divisor(pcdev);
1004
1005 __raw_writel(cicr1, pcdev->base + CICR1);
1006 __raw_writel(cicr2, pcdev->base + CICR2);
1007 __raw_writel(cicr3, pcdev->base + CICR3);
1008 __raw_writel(cicr4, pcdev->base + CICR4);
892 1009
893 /* CIF interrupts are not used, only DMA */ 1010 /* CIF interrupts are not used, only DMA */
894 CICR0 = (pcdev->platform_flags & PXA_CAMERA_MASTER ? 1011 cicr0 = (cicr0 & CICR0_ENB) | (pcdev->platform_flags & PXA_CAMERA_MASTER ?
895 CICR0_SIM_MP : (CICR0_SL_CAP_EN | CICR0_SIM_SP)) | 1012 CICR0_SIM_MP : (CICR0_SL_CAP_EN | CICR0_SIM_SP));
896 CICR0_DMAEN | CICR0_IRQ_MASK | (cicr0 & CICR0_ENB); 1013 cicr0 |= CICR0_DMAEN | CICR0_IRQ_MASK;
1014 __raw_writel(cicr0, pcdev->base + CICR0);
897 1015
898 return 0; 1016 return 0;
899} 1017}
@@ -1139,11 +1257,11 @@ static int pxa_camera_suspend(struct soc_camera_device *icd, pm_message_t state)
1139 struct pxa_camera_dev *pcdev = ici->priv; 1257 struct pxa_camera_dev *pcdev = ici->priv;
1140 int i = 0, ret = 0; 1258 int i = 0, ret = 0;
1141 1259
1142 pcdev->save_cicr[i++] = CICR0; 1260 pcdev->save_cicr[i++] = __raw_readl(pcdev->base + CICR0);
1143 pcdev->save_cicr[i++] = CICR1; 1261 pcdev->save_cicr[i++] = __raw_readl(pcdev->base + CICR1);
1144 pcdev->save_cicr[i++] = CICR2; 1262 pcdev->save_cicr[i++] = __raw_readl(pcdev->base + CICR2);
1145 pcdev->save_cicr[i++] = CICR3; 1263 pcdev->save_cicr[i++] = __raw_readl(pcdev->base + CICR3);
1146 pcdev->save_cicr[i++] = CICR4; 1264 pcdev->save_cicr[i++] = __raw_readl(pcdev->base + CICR4);
1147 1265
1148 if ((pcdev->icd) && (pcdev->icd->ops->suspend)) 1266 if ((pcdev->icd) && (pcdev->icd->ops->suspend))
1149 ret = pcdev->icd->ops->suspend(pcdev->icd, state); 1267 ret = pcdev->icd->ops->suspend(pcdev->icd, state);
@@ -1162,23 +1280,27 @@ static int pxa_camera_resume(struct soc_camera_device *icd)
1162 DRCMR(69) = pcdev->dma_chans[1] | DRCMR_MAPVLD; 1280 DRCMR(69) = pcdev->dma_chans[1] | DRCMR_MAPVLD;
1163 DRCMR(70) = pcdev->dma_chans[2] | DRCMR_MAPVLD; 1281 DRCMR(70) = pcdev->dma_chans[2] | DRCMR_MAPVLD;
1164 1282
1165 CICR0 = pcdev->save_cicr[i++] & ~CICR0_ENB; 1283 __raw_writel(pcdev->save_cicr[i++] & ~CICR0_ENB, pcdev->base + CICR0);
1166 CICR1 = pcdev->save_cicr[i++]; 1284 __raw_writel(pcdev->save_cicr[i++], pcdev->base + CICR1);
1167 CICR2 = pcdev->save_cicr[i++]; 1285 __raw_writel(pcdev->save_cicr[i++], pcdev->base + CICR2);
1168 CICR3 = pcdev->save_cicr[i++]; 1286 __raw_writel(pcdev->save_cicr[i++], pcdev->base + CICR3);
1169 CICR4 = pcdev->save_cicr[i++]; 1287 __raw_writel(pcdev->save_cicr[i++], pcdev->base + CICR4);
1170 1288
1171 if ((pcdev->icd) && (pcdev->icd->ops->resume)) 1289 if ((pcdev->icd) && (pcdev->icd->ops->resume))
1172 ret = pcdev->icd->ops->resume(pcdev->icd); 1290 ret = pcdev->icd->ops->resume(pcdev->icd);
1173 1291
1174 /* Restart frame capture if active buffer exists */ 1292 /* Restart frame capture if active buffer exists */
1175 if (!ret && pcdev->active) { 1293 if (!ret && pcdev->active) {
1294 unsigned long cifr, cicr0;
1295
1176 /* Reset the FIFOs */ 1296 /* Reset the FIFOs */
1177 CIFR |= CIFR_RESET_F; 1297 cifr = __raw_readl(pcdev->base + CIFR) | CIFR_RESET_F;
1178 /* Enable End-Of-Frame Interrupt */ 1298 __raw_writel(cifr, pcdev->base + CIFR);
1179 CICR0 &= ~CICR0_EOFM; 1299
1180 /* Restart the Capture Interface */ 1300 cicr0 = __raw_readl(pcdev->base + CICR0);
1181 CICR0 |= CICR0_ENB; 1301 cicr0 &= ~CICR0_EOFM; /* Enable End-Of-Frame Interrupt */
1302 cicr0 |= CICR0_ENB; /* Restart the Capture Interface */
1303 __raw_writel(cicr0, pcdev->base + CICR0);
1182 } 1304 }
1183 1305
1184 return ret; 1306 return ret;