|
@@ -213,14 +213,17 @@ static int ccp2_phyif_config(struct isp_ccp2_device *ccp2,
|
|
struct isp_device *isp = to_isp_device(ccp2);
|
|
struct isp_device *isp = to_isp_device(ccp2);
|
|
u32 val;
|
|
u32 val;
|
|
|
|
|
|
- /* CCP2B mode */
|
|
|
|
val = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL) |
|
|
val = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL) |
|
|
- ISPCCP2_CTRL_IO_OUT_SEL | ISPCCP2_CTRL_MODE;
|
|
|
|
|
|
+ ISPCCP2_CTRL_MODE;
|
|
/* Data/strobe physical layer */
|
|
/* Data/strobe physical layer */
|
|
BIT_SET(val, ISPCCP2_CTRL_PHY_SEL_SHIFT, ISPCCP2_CTRL_PHY_SEL_MASK,
|
|
BIT_SET(val, ISPCCP2_CTRL_PHY_SEL_SHIFT, ISPCCP2_CTRL_PHY_SEL_MASK,
|
|
buscfg->phy_layer);
|
|
buscfg->phy_layer);
|
|
|
|
+ BIT_SET(val, ISPCCP2_CTRL_IO_OUT_SEL_SHIFT,
|
|
|
|
+ ISPCCP2_CTRL_IO_OUT_SEL_MASK, buscfg->ccp2_mode);
|
|
BIT_SET(val, ISPCCP2_CTRL_INV_SHIFT, ISPCCP2_CTRL_INV_MASK,
|
|
BIT_SET(val, ISPCCP2_CTRL_INV_SHIFT, ISPCCP2_CTRL_INV_MASK,
|
|
buscfg->strobe_clk_pol);
|
|
buscfg->strobe_clk_pol);
|
|
|
|
+ BIT_SET(val, ISPCCP2_CTRL_VP_CLK_POL_SHIFT,
|
|
|
|
+ ISPCCP2_CTRL_VP_CLK_POL_MASK, buscfg->vp_clk_pol);
|
|
isp_reg_writel(isp, val, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL);
|
|
isp_reg_writel(isp, val, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL);
|
|
|
|
|
|
val = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL);
|
|
val = isp_reg_readl(isp, OMAP3_ISP_IOMEM_CCP2, ISPCCP2_CTRL);
|