/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_pll.c | 45 unsigned long fint, clkdco, clkout; in hdmi_pll_compute() local 71 clkdco = fint * m; in hdmi_pll_compute() 74 if (WARN_ON(target_clkdco - clkdco > fint)) in hdmi_pll_compute() 77 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in hdmi_pll_compute() 80 clkdco += (u32)div_u64((u64)mf * fint, 262144); in hdmi_pll_compute() 82 clkout = clkdco / m2; in hdmi_pll_compute() 89 DSSDBG("Fint %lu, clkdco %lu, clkout %lu\n", fint, clkdco, clkout); in hdmi_pll_compute() 98 pi->clkdco = clkdco; in hdmi_pll_compute()
|
D | pll.c | 132 bool dss_pll_hsdiv_calc(const struct dss_pll *pll, unsigned long clkdco, in dss_pll_hsdiv_calc() argument 143 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); in dss_pll_hsdiv_calc() 145 m_stop = min((unsigned)(clkdco / out_min), hw->mX_max); in dss_pll_hsdiv_calc() 148 out = clkdco / m; in dss_pll_hsdiv_calc() 164 unsigned long fint, clkdco; in dss_pll_calc() local 188 clkdco = 2 * m * fint; in dss_pll_calc() 190 if (func(n, m, fint, clkdco, data)) in dss_pll_calc() 289 u32 f = cinfo->clkdco < hw->clkdco_low ? 0x2 : 0x4; in dss_pll_write_config_type_a() 361 if (cinfo->clkdco > hw->clkdco_low) in dss_pll_write_config_type_b()
|
D | dpi.c | 205 unsigned long clkdco, in dpi_calc_pll_cb() argument 213 ctx->dsi_cinfo.clkdco = clkdco; in dpi_calc_pll_cb() 215 return dss_pll_hsdiv_calc(ctx->pll, clkdco, in dpi_calc_pll_cb()
|
D | dss.h | 133 unsigned long clkdco; member 493 unsigned long clkdco, void *data); 505 bool dss_pll_hsdiv_calc(const struct dss_pll *pll, unsigned long clkdco,
|
D | dsi.c | 1256 return dsi->pll.cinfo.clkdco / 16; in dsi_get_txbyteclkhs() 1382 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); in dsi_pll_calc_dsi_fck() 1383 cinfo->clkout[HSDIV_DSI] = cinfo->clkdco / cinfo->mX[HSDIV_DSI]; in dsi_pll_calc_dsi_fck() 1494 cinfo->clkdco, cinfo->m); in dsi_dump_dsidev_clocks() 1523 cinfo->clkdco / 4); in dsi_dump_dsidev_clocks() 1862 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ns2ddr() 1870 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ddr2ns() 4446 unsigned long clkdco, void *data) in dsi_cm_calc_pll_cb() argument 4453 ctx->dsi_cinfo.clkdco = clkdco; in dsi_cm_calc_pll_cb() 4455 return dss_pll_hsdiv_calc(ctx->pll, clkdco, ctx->req_pck_min, in dsi_cm_calc_pll_cb() [all …]
|
D | hdmi4.c | 188 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
|
D | hdmi5.c | 205 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
|
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 187 bool dss_pll_hsdiv_calc_a(const struct dss_pll *pll, unsigned long clkdco, in dss_pll_hsdiv_calc_a() argument 198 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); in dss_pll_hsdiv_calc_a() 200 m_stop = min((unsigned)(clkdco / out_min), hw->mX_max); in dss_pll_hsdiv_calc_a() 203 out = clkdco / m; in dss_pll_hsdiv_calc_a() 223 unsigned long fint, clkdco; in dss_pll_calc_a() local 259 clkdco = 2 * m * fint; in dss_pll_calc_a() 261 if (func(n, m, fint, clkdco, data)) in dss_pll_calc_a() 280 unsigned long fint, clkdco, clkout; in dss_pll_calc_b() local 301 clkdco = fint * m; in dss_pll_calc_b() 304 if (WARN_ON(target_clkdco - clkdco > fint)) in dss_pll_calc_b() [all …]
|
D | dss.h | 143 unsigned long clkdco; member 456 unsigned long clkdco, void *data); 471 bool dss_pll_hsdiv_calc_a(const struct dss_pll *pll, unsigned long clkdco,
|
D | dpi.c | 201 unsigned long clkdco, in dpi_calc_pll_cb() argument 209 ctx->pll_cinfo.clkdco = clkdco; in dpi_calc_pll_cb() 211 return dss_pll_hsdiv_calc_a(ctx->dpi->pll, clkdco, in dpi_calc_pll_cb()
|
D | dsi.c | 1243 return dsi->pll.cinfo.clkdco / 16; in dsi_get_txbyteclkhs() 1365 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); in dsi_pll_calc_dsi_fck() 1366 cinfo->clkout[HSDIV_DSI] = cinfo->clkdco / cinfo->mX[HSDIV_DSI]; in dsi_pll_calc_dsi_fck() 1471 cinfo->clkdco, cinfo->m); in dsi_dump_dsi_clocks() 1499 cinfo->clkdco / 4); in dsi_dump_dsi_clocks() 1835 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ns2ddr() 1842 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ddr2ns() 4448 unsigned long clkdco, void *data) in dsi_cm_calc_pll_cb() argument 4456 ctx->dsi_cinfo.clkdco = clkdco; in dsi_cm_calc_pll_cb() 4458 return dss_pll_hsdiv_calc_a(ctx->pll, clkdco, ctx->req_pck_min, in dsi_cm_calc_pll_cb() [all …]
|
D | hdmi5.c | 214 r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
|
D | hdmi4.c | 217 r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
|