Lines Matching full:lanes
167 struct isp_csiphy_lanes_cfg *lanes; in omap3isp_csiphy_config() local
175 lanes = &buscfg->bus.ccp2.lanecfg; in omap3isp_csiphy_config()
178 lanes = &buscfg->bus.csi2.lanecfg; in omap3isp_csiphy_config()
185 /* Clock and data lanes verification */ in omap3isp_csiphy_config()
187 if (lanes->data[i].pol > 1 || lanes->data[i].pos > 3) in omap3isp_csiphy_config()
190 if (used_lanes & (1 << lanes->data[i].pos)) in omap3isp_csiphy_config()
193 used_lanes |= 1 << lanes->data[i].pos; in omap3isp_csiphy_config()
196 if (lanes->clk.pol > 1 || lanes->clk.pos > 3) in omap3isp_csiphy_config()
199 if (lanes->clk.pos == 0 || used_lanes & (1 << lanes->clk.pos)) in omap3isp_csiphy_config()
211 /* CSI-2 is DDR and we only count used lanes. */ in omap3isp_csiphy_config()
245 reg |= (lanes->data[i].pol << in omap3isp_csiphy_config()
247 reg |= (lanes->data[i].pos << in omap3isp_csiphy_config()
253 reg |= lanes->clk.pol << ISPCSI2_PHY_CFG_CLOCK_POL_SHIFT; in omap3isp_csiphy_config()
254 reg |= lanes->clk.pos << ISPCSI2_PHY_CFG_CLOCK_POSITION_SHIFT; in omap3isp_csiphy_config()