Lines Matching refs:inno
84 static inline void phy_write(struct inno_video_phy *inno, u32 reg, u32 val) in phy_write() argument
86 writel(val, inno->base + reg); in phy_write()
89 static inline u32 phy_read(struct inno_video_phy *inno, u32 reg) in phy_read() argument
91 return readl(inno->base + reg); in phy_read()
94 static inline void phy_update_bits(struct inno_video_phy *inno, in phy_update_bits() argument
99 orig = phy_read(inno, reg); in phy_update_bits()
102 phy_write(inno, reg, tmp); in phy_update_bits()
105 static void phy_multi_write(struct inno_video_phy *inno, in phy_multi_write() argument
111 phy_write(inno, regs[i].reg, regs[i].def); in phy_multi_write()
120 struct inno_video_phy *inno = dev_get_priv(phy->dev); in inno_video_phy_power_on() local
126 switch (inno->mode) { in inno_video_phy_power_on()
128 if (inno->dual_channel) { in inno_video_phy_power_on()
144 phy_multi_write(inno, wseq, nregs); in inno_video_phy_power_on()
146 phy_update_bits(inno, 0x0030, DISABLE_PLL, 0); in inno_video_phy_power_on()
147 ret = readl_poll_timeout(inno->base + 0x003c, status, in inno_video_phy_power_on()
154 phy_update_bits(inno, 0x0084, ENABLE_TX, ENABLE_TX); in inno_video_phy_power_on()
161 struct inno_video_phy *inno = dev_get_priv(phy->dev); in inno_video_phy_power_off() local
163 phy_update_bits(inno, 0x0084, ENABLE_TX, 0); in inno_video_phy_power_off()
164 phy_update_bits(inno, 0x0030, DISABLE_PLL, DISABLE_PLL); in inno_video_phy_power_off()
172 struct inno_video_phy *inno = dev_get_priv(phy->dev); in inno_video_phy_set_mode() local
177 inno->mode = mode; in inno_video_phy_set_mode()
189 struct inno_video_phy *inno = dev_get_priv(phy->dev); in inno_video_phy_set_bus_width() local
191 inno->dual_channel = (bus_width == 2) ? true : false; in inno_video_phy_set_bus_width()
205 struct inno_video_phy *inno = dev_get_priv(dev); in inno_video_phy_probe() local
209 inno->base = dev_read_addr_ptr(dev); in inno_video_phy_probe()