Home
last modified time | relevance | path

Searched refs:hsfreq (Results 1 – 6 of 6) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-dphy-rx0.c157 u8 hsfreq; member
212 rk_dphy_write(priv, LANE0_HS_RX_CONTROL, priv->hsfreq << 1); in rk_dphy_enable()
214 rk_dphy_write(priv, LANE1_HS_RX_CONTROL, priv->hsfreq << 1); in rk_dphy_enable()
216 rk_dphy_write(priv, LANE2_HS_RX_CONTROL, priv->hsfreq << 1); in rk_dphy_enable()
218 rk_dphy_write(priv, LANE3_HS_RX_CONTROL, priv->hsfreq << 1); in rk_dphy_enable()
232 unsigned int hsfreq = 0; in rk_dphy_configure() local
248 hsfreq = drv_data->hsfreq_ranges[i].cfg_bit; in rk_dphy_configure()
252 if (!hsfreq) in rk_dphy_configure()
255 priv->hsfreq = hsfreq; in rk_dphy_configure()
H A Dphy-rockchip-mipi-rx.c686 static void csi_mipidphy_wr_ths_settle(struct mipidphy_priv *priv, int hsfreq, in csi_mipidphy_wr_ths_settle() argument
713 val = (val & ~0x7f) | hsfreq; in csi_mipidphy_wr_ths_settle()
1166 int i, hsfreq = 0; in mipidphy_rx_stream_on() local
1176 hsfreq = hsfreq_ranges[i].cfg_bit; in mipidphy_rx_stream_on()
1185 hsfreq = hsfreq_ranges[i].cfg_bit; in mipidphy_rx_stream_on()
1228 hsfreq <<= 1; in mipidphy_rx_stream_on()
1230 mipidphy0_wr_reg(priv, LANE0_HS_RX_CONTROL, hsfreq); in mipidphy_rx_stream_on()
1231 mipidphy0_wr_reg(priv, LANE1_HS_RX_CONTROL, hsfreq); in mipidphy_rx_stream_on()
1232 mipidphy0_wr_reg(priv, LANE2_HS_RX_CONTROL, hsfreq); in mipidphy_rx_stream_on()
1233 mipidphy0_wr_reg(priv, LANE3_HS_RX_CONTROL, hsfreq); in mipidphy_rx_stream_on()
[all …]
H A Dphy-rockchip-csi2-dphy-hw.c302 int hsfreq, in csi_mipidphy_wr_ths_settle() argument
332 val = (val & ~0x7f) | hsfreq; in csi_mipidphy_wr_ths_settle()
689 int i, hsfreq = 0; in csi2_dphy_hw_stream_on() local
780 hsfreq = hsfreq_ranges[i].cfg_bit; in csi2_dphy_hw_stream_on()
789 hsfreq = hsfreq_ranges[i].cfg_bit; in csi2_dphy_hw_stream_on()
793 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_CLOCK); in csi2_dphy_hw_stream_on()
795 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_DATA0); in csi2_dphy_hw_stream_on()
797 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_DATA1); in csi2_dphy_hw_stream_on()
799 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_DATA2); in csi2_dphy_hw_stream_on()
801 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_DATA3); in csi2_dphy_hw_stream_on()
[all …]
H A Dphy-rockchip-samsung-dcphy.c1936 int i, hsfreq = 0; in samsung_dcphy_rx_config_settle() local
1955 hsfreq = hsfreq_ranges[i].cfg_bit; in samsung_dcphy_rx_config_settle()
1964 hsfreq = hsfreq_ranges[i].cfg_bit; in samsung_dcphy_rx_config_settle()
1971 regmap_update_bits(samsung->regmap, RX_LANE0_THS_SETTLE, 0x1ff, hsfreq); in samsung_dcphy_rx_config_settle()
1975 regmap_update_bits(samsung->regmap, RX_LANE1_THS_SETTLE, 0x1ff, hsfreq); in samsung_dcphy_rx_config_settle()
1979 regmap_update_bits(samsung->regmap, RX_LANE2_THS_SETTLE, 0x1ff, hsfreq); in samsung_dcphy_rx_config_settle()
1983 regmap_update_bits(samsung->regmap, RX_LANE3_THS_SETTLE, 0x1ff, hsfreq); in samsung_dcphy_rx_config_settle()
/OK3568_Linux_fs/kernel/drivers/media/platform/rcar-vin/
H A Drcar-csi2.c438 const struct rcsi2_mbps_reg *hsfreq; in rcsi2_set_phypll() local
441 for (hsfreq = priv->info->hsfreqrange; hsfreq->mbps != 0; hsfreq++) { in rcsi2_set_phypll()
442 if (hsfreq->mbps >= mbps) in rcsi2_set_phypll()
444 hsfreq_prev = hsfreq; in rcsi2_set_phypll()
447 if (!hsfreq->mbps) { in rcsi2_set_phypll()
453 ((mbps - hsfreq_prev->mbps) <= (hsfreq->mbps - mbps))) in rcsi2_set_phypll()
454 hsfreq = hsfreq_prev; in rcsi2_set_phypll()
456 rcsi2_write(priv, PHYPLL_REG, PHYPLL_HSFREQRANGE(hsfreq->reg)); in rcsi2_set_phypll()
/OK3568_Linux_fs/kernel/drivers/video/rockchip/vehicle/
H A Dvehicle_cif.c1459 int hsfreq, in csi_mipidphy_wr_ths_settle() argument
1489 val = (val & ~0x7f) | hsfreq; in csi_mipidphy_wr_ths_settle()
1683 int i, hsfreq = 0; in vehicle_csi2_dphy_stream_start() local
1728 hsfreq = hsfreq_ranges[i].cfg_bit; in vehicle_csi2_dphy_stream_start()
1737 hsfreq = hsfreq_ranges[i].cfg_bit; in vehicle_csi2_dphy_stream_start()
1741 hw->data_rate_mbps, hsfreq, cif->cif_cfg.lanes); in vehicle_csi2_dphy_stream_start()
1743 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_CLOCK); in vehicle_csi2_dphy_stream_start()
1745 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_DATA0); in vehicle_csi2_dphy_stream_start()
1747 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_DATA1); in vehicle_csi2_dphy_stream_start()
1749 csi_mipidphy_wr_ths_settle(hw, hsfreq, CSI2_DPHY_LANE_DATA2); in vehicle_csi2_dphy_stream_start()
[all …]