Home
last modified time | relevance | path

Searched refs:mipi_tx (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/phy/mediatek/
H A Dphy-mtk-mipi-dsi.c20 mipi_tx->data_rate = rate; in mtk_mipi_tx_pll_set_rate()
30 return mipi_tx->data_rate; in mtk_mipi_tx_pll_recalc_rate()
108 struct mtk_mipi_tx *mipi_tx; in mtk_mipi_tx_probe() local
120 mipi_tx = devm_kzalloc(dev, sizeof(*mipi_tx), GFP_KERNEL); in mtk_mipi_tx_probe()
121 if (!mipi_tx) in mtk_mipi_tx_probe()
125 if (!mipi_tx->driver_data) in mtk_mipi_tx_probe()
129 if (IS_ERR(mipi_tx->regs)) in mtk_mipi_tx_probe()
144 if (mipi_tx->mipitx_drive > 6000 || mipi_tx->mipitx_drive < 3000) { in mtk_mipi_tx_probe()
146 mipi_tx->mipitx_drive); in mtk_mipi_tx_probe()
147 mipi_tx->mipitx_drive = clamp_val(mipi_tx->mipitx_drive, 3000, in mtk_mipi_tx_probe()
[all …]
H A Dphy-mtk-mipi-dsi-mt8183.c50 void __iomem *base = mipi_tx->regs; in mtk_mipi_tx_pll_enable()
54 dev_dbg(mipi_tx->dev, "enable: %u bps\n", mipi_tx->data_rate); in mtk_mipi_tx_pll_enable()
56 if (mipi_tx->data_rate >= 2000000000) { in mtk_mipi_tx_pll_enable()
92 void __iomem *base = mipi_tx->regs; in mtk_mipi_tx_pll_disable()
119 if ((mipi_tx->rt_code[i] & 0x1f) == 0) in mtk_mipi_tx_config_calibration_data()
120 mipi_tx->rt_code[i] |= 0x10; in mtk_mipi_tx_config_calibration_data()
123 mipi_tx->rt_code[i] |= 0x10 << 5; in mtk_mipi_tx_config_calibration_data()
126 mtk_phy_update_bits(mipi_tx->regs + in mtk_mipi_tx_config_calibration_data()
128 1, mipi_tx->rt_code[i] >> j & 1); in mtk_mipi_tx_config_calibration_data()
135 void __iomem *base = mipi_tx->regs; in mtk_mipi_tx_power_on_signal()
[all …]
H A Dphy-mtk-mipi-dsi-mt8173.c125 void __iomem *base = mipi_tx->regs; in mtk_mipi_tx_pll_prepare()
129 dev_dbg(mipi_tx->dev, "prepare: %u Hz\n", mipi_tx->data_rate); in mtk_mipi_tx_pll_prepare()
131 if (mipi_tx->data_rate >= 500000000) { in mtk_mipi_tx_pll_prepare()
135 } else if (mipi_tx->data_rate >= 250000000) { in mtk_mipi_tx_pll_prepare()
139 } else if (mipi_tx->data_rate >= 125000000) { in mtk_mipi_tx_pll_prepare()
143 } else if (mipi_tx->data_rate > 62000000) { in mtk_mipi_tx_pll_prepare()
147 } else if (mipi_tx->data_rate >= 50000000) { in mtk_mipi_tx_pll_prepare()
209 mipi_tx->driver_data->mppll_preserve); in mtk_mipi_tx_pll_prepare()
217 void __iomem *base = mipi_tx->regs; in mtk_mipi_tx_pll_unprepare()
219 dev_dbg(mipi_tx->dev, "unprepare\n"); in mtk_mipi_tx_pll_unprepare()
[all …]