Lines Matching refs:isp
64 #define CCP2_PRINT_REGISTER(isp, name)\ argument
65 dev_dbg(isp->dev, "###CCP2 " #name "=0x%08x\n", \
66 isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_##name))
70 struct isp_device *isp = to_isp_device(ccp2); in ccp2_print_status() local
72 dev_dbg(isp->dev, "-------------CCP2 Register dump-------------\n"); in ccp2_print_status()
74 CCP2_PRINT_REGISTER(isp, SYSCONFIG); in ccp2_print_status()
75 CCP2_PRINT_REGISTER(isp, SYSSTATUS); in ccp2_print_status()
76 CCP2_PRINT_REGISTER(isp, LC01_IRQENABLE); in ccp2_print_status()
77 CCP2_PRINT_REGISTER(isp, LC01_IRQSTATUS); in ccp2_print_status()
78 CCP2_PRINT_REGISTER(isp, LC23_IRQENABLE); in ccp2_print_status()
79 CCP2_PRINT_REGISTER(isp, LC23_IRQSTATUS); in ccp2_print_status()
80 CCP2_PRINT_REGISTER(isp, LCM_IRQENABLE); in ccp2_print_status()
81 CCP2_PRINT_REGISTER(isp, LCM_IRQSTATUS); in ccp2_print_status()
82 CCP2_PRINT_REGISTER(isp, CTRL); in ccp2_print_status()
83 CCP2_PRINT_REGISTER(isp, LCx_CTRL(0)); in ccp2_print_status()
84 CCP2_PRINT_REGISTER(isp, LCx_CODE(0)); in ccp2_print_status()
85 CCP2_PRINT_REGISTER(isp, LCx_STAT_START(0)); in ccp2_print_status()
86 CCP2_PRINT_REGISTER(isp, LCx_STAT_SIZE(0)); in ccp2_print_status()
87 CCP2_PRINT_REGISTER(isp, LCx_SOF_ADDR(0)); in ccp2_print_status()
88 CCP2_PRINT_REGISTER(isp, LCx_EOF_ADDR(0)); in ccp2_print_status()
89 CCP2_PRINT_REGISTER(isp, LCx_DAT_START(0)); in ccp2_print_status()
90 CCP2_PRINT_REGISTER(isp, LCx_DAT_SIZE(0)); in ccp2_print_status()
91 CCP2_PRINT_REGISTER(isp, LCx_DAT_PING_ADDR(0)); in ccp2_print_status()
92 CCP2_PRINT_REGISTER(isp, LCx_DAT_PONG_ADDR(0)); in ccp2_print_status()
93 CCP2_PRINT_REGISTER(isp, LCx_DAT_OFST(0)); in ccp2_print_status()
94 CCP2_PRINT_REGISTER(isp, LCM_CTRL); in ccp2_print_status()
95 CCP2_PRINT_REGISTER(isp, LCM_VSIZE); in ccp2_print_status()
96 CCP2_PRINT_REGISTER(isp, LCM_HSIZE); in ccp2_print_status()
97 CCP2_PRINT_REGISTER(isp, LCM_PREFETCH); in ccp2_print_status()
98 CCP2_PRINT_REGISTER(isp, LCM_SRC_ADDR); in ccp2_print_status()
99 CCP2_PRINT_REGISTER(isp, LCM_SRC_OFST); in ccp2_print_status()
100 CCP2_PRINT_REGISTER(isp, LCM_DST_ADDR); in ccp2_print_status()
101 CCP2_PRINT_REGISTER(isp, LCM_DST_OFST); in ccp2_print_status()
103 dev_dbg(isp->dev, "--------------------------------------------\n"); in ccp2_print_status()
112 struct isp_device *isp = to_isp_device(ccp2); in ccp2_reset() local
116 isp_reg_set(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_SYSCONFIG, in ccp2_reset()
118 while (!(isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_SYSSTATUS) & in ccp2_reset()
122 dev_warn(isp->dev, in ccp2_reset()
135 struct isp_device *isp = to_isp_device(ccp2); in ccp2_pwr_cfg() local
137 isp_reg_writel(isp, ISPCCP2_SYSCONFIG_MSTANDBY_MODE_SMART | in ccp2_pwr_cfg()
138 ((isp->revision == ISP_REVISION_15_0 && isp->autoidle) ? in ccp2_pwr_cfg()
150 struct isp_device *isp = to_isp_device(ccp2); in ccp2_if_enable() local
162 isp_reg_clr_set(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LCx_CTRL(i), in ccp2_if_enable()
167 isp_reg_clr_set(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL, in ccp2_if_enable()
184 struct isp_device *isp = to_isp_device(ccp2); in ccp2_mem_enable() local
190 isp_reg_clr_set(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL, in ccp2_mem_enable()
193 isp_reg_clr_set(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LCM_CTRL, in ccp2_mem_enable()
210 struct isp_device *isp = to_isp_device(ccp2); in ccp2_phyif_config() local
213 val = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL) | in ccp2_phyif_config()
224 isp_reg_writel(isp, val, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL); in ccp2_phyif_config()
226 val = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL); in ccp2_phyif_config()
229 dev_warn(isp->dev, "OMAP3 CCP2 bus not available\n"); in ccp2_phyif_config()
255 struct isp_device *isp = to_isp_device(ccp2); in ccp2_vp_config() local
259 val = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL); in ccp2_vp_config()
262 if (isp->revision == ISP_REVISION_15_0) { in ccp2_vp_config()
273 isp_reg_writel(isp, val, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL); in ccp2_vp_config()
288 struct isp_device *isp = to_isp_device(ccp2); in ccp2_lcx_config() local
301 val = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LCx_CTRL(0)) in ccp2_lcx_config()
304 if (isp->revision == ISP_REVISION_15_0) { in ccp2_lcx_config()
320 isp_reg_writel(isp, val, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LCx_CTRL(0)); in ccp2_lcx_config()
323 isp_reg_writel(isp, config->data_start << ISPCCP2_LCx_DAT_SHIFT, in ccp2_lcx_config()
327 isp_reg_writel(isp, config->data_size << ISPCCP2_LCx_DAT_SHIFT, in ccp2_lcx_config()
338 isp_reg_writel(isp, val, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LC01_IRQSTATUS); in ccp2_lcx_config()
339 isp_reg_set(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LC01_IRQENABLE, val); in ccp2_lcx_config()
387 struct isp_device *isp = to_isp_device(ccp2); in ccp2_adjust_bandwidth() local
417 dev_dbg(isp->dev, "%s: minimum clock divisor = %u\n", __func__, in ccp2_adjust_bandwidth()
435 struct isp_device *isp = to_isp_device(ccp2); in ccp2_mem_configure() local
448 isp_reg_writel(isp, ISPCCP2_LCM_HSIZE_SKIP_MIN | in ccp2_mem_configure()
453 isp_reg_writel(isp, config->vsize_count << ISPCCP2_LCM_VSIZE_SHIFT, in ccp2_mem_configure()
461 isp_reg_writel(isp, config->src_ofst, OMAP3_ISP_IOMEM_CCP2, in ccp2_mem_configure()
489 isp_reg_writel(isp, val, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LCM_CTRL); in ccp2_mem_configure()
499 isp_reg_writel(isp, hwords << ISPCCP2_LCM_PREFETCH_SHIFT, in ccp2_mem_configure()
503 isp_reg_set(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL, in ccp2_mem_configure()
508 isp_reg_writel(isp, ISPCCP2_LCM_IRQSTATUS_OCPERROR_IRQ | in ccp2_mem_configure()
513 isp_reg_set(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LCM_IRQENABLE, in ccp2_mem_configure()
527 struct isp_device *isp = to_isp_device(ccp2); in ccp2_set_inaddr() local
529 isp_reg_writel(isp, addr, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_LCM_SRC_ADDR); in ccp2_set_inaddr()
563 struct isp_device *isp = to_isp_device(ccp2); in omap3isp_ccp2_isr() local
574 lcx_irqstatus = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, in omap3isp_ccp2_isr()
576 isp_reg_writel(isp, lcx_irqstatus, OMAP3_ISP_IOMEM_CCP2, in omap3isp_ccp2_isr()
579 lcm_irqstatus = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, in omap3isp_ccp2_isr()
581 isp_reg_writel(isp, lcm_irqstatus, OMAP3_ISP_IOMEM_CCP2, in omap3isp_ccp2_isr()
586 dev_dbg(isp->dev, "CCP2 err:%x\n", lcx_irqstatus); in omap3isp_ccp2_isr()
592 dev_dbg(isp->dev, "CCP2 OCP err:%x\n", lcm_irqstatus); in omap3isp_ccp2_isr()
836 struct isp_device *isp = to_isp_device(ccp2); in ccp2_s_stream() local
877 omap3isp_sbl_enable(isp, OMAP3_ISP_SBL_CSI1_READ); in ccp2_s_stream()
889 omap3isp_sbl_disable(isp, OMAP3_ISP_SBL_CSI1_READ); in ccp2_s_stream()
939 struct isp_ccp2_device *ccp2 = &video->isp->isp_ccp2; in ccp2_video_queue()
1108 ccp2->video_in.isp = to_isp_device(ccp2); in ccp2_init_entities()
1128 int omap3isp_ccp2_init(struct isp_device *isp) in omap3isp_ccp2_init() argument
1130 struct isp_ccp2_device *ccp2 = &isp->isp_ccp2; in omap3isp_ccp2_init()
1146 if (isp->revision == ISP_REVISION_2_0) { in omap3isp_ccp2_init()
1147 ccp2->vdds_csib = devm_regulator_get(isp->dev, "vdds_csib"); in omap3isp_ccp2_init()
1150 dev_dbg(isp->dev, in omap3isp_ccp2_init()
1154 dev_dbg(isp->dev, in omap3isp_ccp2_init()
1158 ccp2->phy = &isp->isp_csiphy2; in omap3isp_ccp2_init()
1159 } else if (isp->revision == ISP_REVISION_15_0) { in omap3isp_ccp2_init()
1160 ccp2->phy = &isp->isp_csiphy1; in omap3isp_ccp2_init()
1175 void omap3isp_ccp2_cleanup(struct isp_device *isp) in omap3isp_ccp2_cleanup() argument
1177 struct isp_ccp2_device *ccp2 = &isp->isp_ccp2; in omap3isp_ccp2_cleanup()