Lines Matching refs:rk628

12 static void rk628_combtxphy_dsi_power_on(struct rk628 *rk628)  in rk628_combtxphy_dsi_power_on()  argument
14 struct rk628_combtxphy *combtxphy = &rk628->combtxphy; in rk628_combtxphy_dsi_power_on()
18 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, SW_BUS_WIDTH_MASK | in rk628_combtxphy_dsi_power_on()
23 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_dsi_power_on()
27 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_dsi_power_on()
30 rk628_i2c_write(rk628, COMBTXPHY_CON5, in rk628_combtxphy_dsi_power_on()
36 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, SW_PD_PLL, 0); in rk628_combtxphy_dsi_power_on()
38 ret = regmap_read_poll_timeout(rk628->regmap[RK628_DEV_GRF], in rk628_combtxphy_dsi_power_on()
42 dev_err(rk628->dev, "phy is not lock\n"); in rk628_combtxphy_dsi_power_on()
45 rk628_i2c_update_bits(rk628, COMBTXPHY_CON9, in rk628_combtxphy_dsi_power_on()
52 static void rk628_combtxphy_lvds_power_on(struct rk628 *rk628) in rk628_combtxphy_lvds_power_on() argument
55 struct rk628_combtxphy *combtxphy = &rk628->combtxphy; in rk628_combtxphy_lvds_power_on()
60 rk628_i2c_update_bits(rk628, COMBTXPHY_CON7, in rk628_combtxphy_lvds_power_on()
66 rk628_i2c_write(rk628, COMBTXPHY_CON10, TX7_CKDRV_EN | TX2_CKDRV_EN); in rk628_combtxphy_lvds_power_on()
67 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_lvds_power_on()
73 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_lvds_power_on()
77 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_lvds_power_on()
80 rk628_i2c_write(rk628, COMBTXPHY_CON5, in rk628_combtxphy_lvds_power_on()
86 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_lvds_power_on()
89 ret = regmap_read_poll_timeout(rk628->regmap[RK628_DEV_GRF], in rk628_combtxphy_lvds_power_on()
93 dev_err(rk628->dev, "phy is not lock\n"); in rk628_combtxphy_lvds_power_on()
96 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, SW_TX_IDLE_MASK | SW_TX_PD_MASK, 0); in rk628_combtxphy_lvds_power_on()
99 static void rk628_combtxphy_gvi_power_on(struct rk628 *rk628) in rk628_combtxphy_gvi_power_on() argument
101 struct rk628_combtxphy *combtxphy = &rk628->combtxphy; in rk628_combtxphy_gvi_power_on()
111 rk628_i2c_write(rk628, COMBTXPHY_CON5, in rk628_combtxphy_gvi_power_on()
116 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_gvi_power_on()
123 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_gvi_power_on()
126 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_gvi_power_on()
130 void rk628_combtxphy_power_on(struct rk628 *rk628) in rk628_combtxphy_power_on() argument
132 struct rk628_combtxphy *combtxphy = &rk628->combtxphy; in rk628_combtxphy_power_on()
134 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, in rk628_combtxphy_power_on()
142 rk628_i2c_update_bits(rk628, GRF_POST_PROC_CON, in rk628_combtxphy_power_on()
145 rk628_combtxphy_dsi_power_on(rk628); in rk628_combtxphy_power_on()
148 rk628_i2c_update_bits(rk628, GRF_POST_PROC_CON, in rk628_combtxphy_power_on()
151 rk628_combtxphy_lvds_power_on(rk628); in rk628_combtxphy_power_on()
154 rk628_i2c_update_bits(rk628, GRF_POST_PROC_CON, in rk628_combtxphy_power_on()
157 rk628_combtxphy_gvi_power_on(rk628); in rk628_combtxphy_power_on()
164 void rk628_combtxphy_power_off(struct rk628 *rk628) in rk628_combtxphy_power_off() argument
166 rk628_i2c_update_bits(rk628, COMBTXPHY_CON0, SW_TX_IDLE_MASK | in rk628_combtxphy_power_off()
172 void rk628_combtxphy_set_bus_width(struct rk628 *rk628, u32 bus_width) in rk628_combtxphy_set_bus_width() argument
174 rk628->combtxphy.bus_width = bus_width; in rk628_combtxphy_set_bus_width()
177 u32 rk628_combtxphy_get_bus_width(struct rk628 *rk628) in rk628_combtxphy_get_bus_width() argument
179 return rk628->combtxphy.bus_width; in rk628_combtxphy_get_bus_width()
182 void rk628_combtxphy_set_gvi_division_mode(struct rk628 *rk628, bool division) in rk628_combtxphy_set_gvi_division_mode() argument
184 rk628->combtxphy.division_mode = division; in rk628_combtxphy_set_gvi_division_mode()
187 void rk628_combtxphy_set_mode(struct rk628 *rk628, enum phy_mode mode) in rk628_combtxphy_set_mode() argument
189 struct rk628_combtxphy *combtxphy = &rk628->combtxphy; in rk628_combtxphy_set_mode()
195 int bus_width = rk628_combtxphy_get_bus_width(rk628); in rk628_combtxphy_set_mode()
233 int bus_width = rk628_combtxphy_get_bus_width(rk628); in rk628_combtxphy_set_mode()
253 unsigned int bus_width = rk628_combtxphy_get_bus_width(rk628); in rk628_combtxphy_set_mode()
266 ref_clk = rk628_cru_clk_get_rate(rk628, CGU_SCLK_VOP) / 1000; /* khz */ in rk628_combtxphy_set_mode()