/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 176 bool dss_pll_hsdiv_calc_a(const struct dss_pll *pll, unsigned long clkdco, in dss_pll_hsdiv_calc_a() argument 187 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); in dss_pll_hsdiv_calc_a() 189 m_stop = min((unsigned)(clkdco / out_min), hw->mX_max); in dss_pll_hsdiv_calc_a() 192 out = clkdco / m; in dss_pll_hsdiv_calc_a() 212 unsigned long fint, clkdco; in dss_pll_calc_a() local 248 clkdco = 2 * m * fint; in dss_pll_calc_a() 250 if (func(n, m, fint, clkdco, data)) in dss_pll_calc_a() 269 unsigned long fint, clkdco, clkout; in dss_pll_calc_b() local 290 clkdco = fint * m; in dss_pll_calc_b() 293 if (WARN_ON(target_clkdco - clkdco > fint)) in dss_pll_calc_b() [all …]
|
D | dpi.c | 193 unsigned long clkdco, in dpi_calc_pll_cb() argument 201 ctx->pll_cinfo.clkdco = clkdco; in dpi_calc_pll_cb() 203 return dss_pll_hsdiv_calc_a(ctx->dpi->pll, clkdco, in dpi_calc_pll_cb()
|
D | dss.h | 132 unsigned long clkdco; member 442 unsigned long clkdco, void *data); 457 bool dss_pll_hsdiv_calc_a(const struct dss_pll *pll, unsigned long clkdco,
|
D | dsi.c | 1192 return dsi->pll.cinfo.clkdco / 16; in dsi_get_txbyteclkhs() 1314 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); in dsi_pll_calc_dsi_fck() 1315 cinfo->clkout[HSDIV_DSI] = cinfo->clkdco / cinfo->mX[HSDIV_DSI]; in dsi_pll_calc_dsi_fck() 1403 cinfo->clkdco, cinfo->m); in dsi_dump_dsi_clocks() 1431 cinfo->clkdco / 4); in dsi_dump_dsi_clocks() 1737 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ns2ddr() 1744 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ddr2ns() 4337 unsigned long clkdco, void *data) in dsi_cm_calc_pll_cb() argument 4345 ctx->dsi_cinfo.clkdco = clkdco; in dsi_cm_calc_pll_cb() 4347 return dss_pll_hsdiv_calc_a(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 | 187 r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_pll.c | 42 unsigned long fint, clkdco, clkout; in hdmi_pll_compute() local 68 clkdco = fint * m; in hdmi_pll_compute() 71 if (WARN_ON(target_clkdco - clkdco > fint)) in hdmi_pll_compute() 74 mf = (u32)div_u64(262144ull * (target_clkdco - clkdco), fint); in hdmi_pll_compute() 77 clkdco += (u32)div_u64((u64)mf * fint, 262144); in hdmi_pll_compute() 79 clkout = clkdco / m2; in hdmi_pll_compute() 86 DSSDBG("Fint %lu, clkdco %lu, clkout %lu\n", fint, clkdco, clkout); in hdmi_pll_compute() 95 pi->clkdco = clkdco; in hdmi_pll_compute()
|
D | pll.c | 121 bool dss_pll_hsdiv_calc(const struct dss_pll *pll, unsigned long clkdco, in dss_pll_hsdiv_calc() argument 132 m_start = max(DIV_ROUND_UP(clkdco, out_max), 1ul); in dss_pll_hsdiv_calc() 134 m_stop = min((unsigned)(clkdco / out_min), hw->mX_max); in dss_pll_hsdiv_calc() 137 out = clkdco / m; in dss_pll_hsdiv_calc() 153 unsigned long fint, clkdco; in dss_pll_calc() local 177 clkdco = 2 * m * fint; in dss_pll_calc() 179 if (func(n, m, fint, clkdco, data)) in dss_pll_calc() 278 u32 f = cinfo->clkdco < hw->clkdco_low ? 0x2 : 0x4; in dss_pll_write_config_type_a() 350 if (cinfo->clkdco > hw->clkdco_low) in dss_pll_write_config_type_b()
|
D | dpi.c | 194 unsigned long clkdco, in dpi_calc_pll_cb() argument 202 ctx->dsi_cinfo.clkdco = clkdco; in dpi_calc_pll_cb() 204 return dss_pll_hsdiv_calc(ctx->pll, clkdco, in dpi_calc_pll_cb()
|
D | dss.h | 111 unsigned long clkdco; member 458 unsigned long clkdco, void *data); 470 bool dss_pll_hsdiv_calc(const struct dss_pll *pll, unsigned long clkdco,
|
D | dsi.c | 1248 return dsi->pll.cinfo.clkdco / 16; in dsi_get_txbyteclkhs() 1374 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); in dsi_pll_calc_dsi_fck() 1375 cinfo->clkout[HSDIV_DSI] = cinfo->clkdco / cinfo->mX[HSDIV_DSI]; in dsi_pll_calc_dsi_fck() 1486 cinfo->clkdco, cinfo->m); in dsi_dump_dsidev_clocks() 1515 cinfo->clkdco / 4); in dsi_dump_dsidev_clocks() 1854 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ns2ddr() 1862 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ddr2ns() 4438 unsigned long clkdco, void *data) in dsi_cm_calc_pll_cb() argument 4445 ctx->dsi_cinfo.clkdco = clkdco; in dsi_cm_calc_pll_cb() 4447 return dss_pll_hsdiv_calc(ctx->pll, clkdco, ctx->req_pck_min, in dsi_cm_calc_pll_cb() [all …]
|
D | hdmi5.c | 195 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
|
D | hdmi4.c | 178 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
|