Lines Matching full:isp
5 * TI OMAP3 ISP - CSI PHY module
19 #include "isp.h"
30 regmap_read(phy->isp->syscon, phy->isp->syscon_offset, ®); in csiphy_routing_cfg_3630()
66 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, reg); in csiphy_routing_cfg_3630()
80 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, 0); in csiphy_routing_cfg_3430()
87 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, csirxfe); in csiphy_routing_cfg_3430()
100 * issue since the MPU power domain is forced on whilst the ISP is in use.
106 if (phy->isp->phy_type == ISP_PHY_TYPE_3630 && on) in csiphy_routing_cfg()
108 if (phy->isp->phy_type == ISP_PHY_TYPE_3430) in csiphy_routing_cfg()
118 isp_reg_clr_set(phy->isp, phy->cfg_regs, ISPCSI2_PHY_CFG, in csiphy_power_autoswitch_enable()
134 isp_reg_clr_set(phy->isp, phy->cfg_regs, ISPCSI2_PHY_CFG, in csiphy_set_power()
140 reg = isp_reg_readl(phy->isp, phy->cfg_regs, ISPCSI2_PHY_CFG) & in csiphy_set_power()
149 dev_err(phy->isp->dev, "CSI2 CIO set power failed!\n"); in csiphy_set_power()
205 * ISP is in use. in omap3isp_csiphy_config()
215 reg = isp_reg_readl(phy->isp, phy->phy_regs, ISPCSIPHY_REG0); in omap3isp_csiphy_config()
226 isp_reg_writel(phy->isp, reg, phy->phy_regs, ISPCSIPHY_REG0); in omap3isp_csiphy_config()
228 reg = isp_reg_readl(phy->isp, phy->phy_regs, ISPCSIPHY_REG1); in omap3isp_csiphy_config()
237 isp_reg_writel(phy->isp, reg, phy->phy_regs, ISPCSIPHY_REG1); in omap3isp_csiphy_config()
240 reg = isp_reg_readl(phy->isp, phy->cfg_regs, ISPCSI2_PHY_CFG); in omap3isp_csiphy_config()
256 isp_reg_writel(phy->isp, reg, phy->cfg_regs, ISPCSI2_PHY_CFG); in omap3isp_csiphy_config()
266 dev_err(phy->isp->dev, in omap3isp_csiphy_acquire()
287 if (phy->isp->revision == ISP_REVISION_15_0) { in omap3isp_csiphy_acquire()
314 if (phy->isp->revision == ISP_REVISION_15_0) { in omap3isp_csiphy_release()
327 int omap3isp_csiphy_init(struct isp_device *isp) in omap3isp_csiphy_init() argument
329 struct isp_csiphy *phy1 = &isp->isp_csiphy1; in omap3isp_csiphy_init()
330 struct isp_csiphy *phy2 = &isp->isp_csiphy2; in omap3isp_csiphy_init()
332 phy2->isp = isp; in omap3isp_csiphy_init()
333 phy2->csi2 = &isp->isp_csi2a; in omap3isp_csiphy_init()
339 phy1->isp = isp; in omap3isp_csiphy_init()
342 if (isp->revision == ISP_REVISION_15_0) { in omap3isp_csiphy_init()
343 phy1->csi2 = &isp->isp_csi2c; in omap3isp_csiphy_init()
352 void omap3isp_csiphy_cleanup(struct isp_device *isp) in omap3isp_csiphy_cleanup() argument
354 mutex_destroy(&isp->isp_csiphy1.mutex); in omap3isp_csiphy_cleanup()
355 mutex_destroy(&isp->isp_csiphy2.mutex); in omap3isp_csiphy_cleanup()