Home
last modified time | relevance | path

Searched refs:clkdco (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/
Dhdmi_pll.c45 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()
Dpll.c132 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()
Ddpi.c205 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()
Ddss.h133 unsigned long clkdco; member
493 unsigned long clkdco, void *data);
505 bool dss_pll_hsdiv_calc(const struct dss_pll *pll, unsigned long clkdco,
Ddsi.c1256 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 …]
Dhdmi4.c188 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
Dhdmi5.c205 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/
Dpll.c187 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 …]
Ddss.h143 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,
Ddpi.c201 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()
Ddsi.c1243 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 …]
Dhdmi5.c214 r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
Dhdmi4.c217 r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()