Lines Matching refs:csiphy
43 static void csiphy_hw_version_read(struct csiphy_device *csiphy, in csiphy_hw_version_read() argument
46 u8 hw_version = readl_relaxed(csiphy->base + in csiphy_hw_version_read()
56 static void csiphy_reset(struct csiphy_device *csiphy) in csiphy_reset() argument
58 writel_relaxed(0x1, csiphy->base + CAMSS_CSI_PHY_GLBL_RESET); in csiphy_reset()
60 writel_relaxed(0x0, csiphy->base + CAMSS_CSI_PHY_GLBL_RESET); in csiphy_reset()
97 static void csiphy_lanes_enable(struct csiphy_device *csiphy, in csiphy_lanes_enable() argument
106 settle_cnt = csiphy_settle_cnt_calc(link_freq, csiphy->timer_clk_rate); in csiphy_lanes_enable()
108 writel_relaxed(0x1, csiphy->base + in csiphy_lanes_enable()
110 writel_relaxed(0x1, csiphy->base + in csiphy_lanes_enable()
115 writel_relaxed(val, csiphy->base + CAMSS_CSI_PHY_GLBL_PWR_CFG); in csiphy_lanes_enable()
118 writel_relaxed(val, csiphy->base + CAMSS_CSI_PHY_GLBL_RESET); in csiphy_lanes_enable()
126 writel_relaxed(0x10, csiphy->base + in csiphy_lanes_enable()
128 writel_relaxed(settle_cnt, csiphy->base + in csiphy_lanes_enable()
130 writel_relaxed(0x3f, csiphy->base + in csiphy_lanes_enable()
132 writel_relaxed(0x3f, csiphy->base + in csiphy_lanes_enable()
137 static void csiphy_lanes_disable(struct csiphy_device *csiphy, in csiphy_lanes_disable() argument
150 writel_relaxed(0x0, csiphy->base + in csiphy_lanes_disable()
154 writel_relaxed(0x0, csiphy->base + CAMSS_CSI_PHY_GLBL_PWR_CFG); in csiphy_lanes_disable()
166 struct csiphy_device *csiphy = dev; in csiphy_isr() local
170 u8 val = readl_relaxed(csiphy->base + in csiphy_isr()
172 writel_relaxed(val, csiphy->base + in csiphy_isr()
174 writel_relaxed(0x1, csiphy->base + CAMSS_CSI_PHY_GLBL_IRQ_CMD); in csiphy_isr()
175 writel_relaxed(0x0, csiphy->base + CAMSS_CSI_PHY_GLBL_IRQ_CMD); in csiphy_isr()
176 writel_relaxed(0x0, csiphy->base + in csiphy_isr()