Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/video/fbdev/omap2/omapfb/dss/
Dhdmi_pll.c42 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()
Dpll.c121 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()
Ddss.h111 unsigned long clkdco; member
458 unsigned long clkdco, void *data);
470 bool dss_pll_hsdiv_calc(const struct dss_pll *pll, unsigned long clkdco,
Ddpi.c194 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()
Ddsi.c1245 return dsi->pll.cinfo.clkdco / 16; in dsi_get_txbyteclkhs()
1371 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); in dsi_pll_calc_dsi_fck()
1372 cinfo->clkout[HSDIV_DSI] = cinfo->clkdco / cinfo->mX[HSDIV_DSI]; in dsi_pll_calc_dsi_fck()
1483 cinfo->clkdco, cinfo->m); in dsi_dump_dsidev_clocks()
1512 cinfo->clkdco / 4); in dsi_dump_dsidev_clocks()
1859 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ns2ddr()
1867 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ddr2ns()
4436 unsigned long clkdco, void *data) in dsi_cm_calc_pll_cb() argument
4443 ctx->dsi_cinfo.clkdco = clkdco; in dsi_cm_calc_pll_cb()
4445 return dss_pll_hsdiv_calc(ctx->pll, clkdco, ctx->req_pck_min, in dsi_cm_calc_pll_cb()
[all …]
Dhdmi5.c193 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
Dhdmi4.c176 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
/linux-6.1.9/drivers/gpu/drm/omapdrm/dss/
Dpll.c176 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
254 clkdco = 2 * m * fint; in dss_pll_calc_a()
256 if (func(n, m, fint, clkdco, data)) in dss_pll_calc_a()
275 unsigned long fint, clkdco, clkout; in dss_pll_calc_b() local
296 clkdco = fint * m; in dss_pll_calc_b()
299 if (WARN_ON(target_clkdco - clkdco > fint)) in dss_pll_calc_b()
[all …]
Ddpi.c193 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()
Ddss.h132 unsigned long clkdco; member
515 unsigned long clkdco, void *data);
530 bool dss_pll_hsdiv_calc_a(const struct dss_pll *pll, unsigned long clkdco,
Ddsi.c787 return dsi->pll.cinfo.clkdco / 16; in dsi_get_txbyteclkhs()
909 cinfo->mX[HSDIV_DSI] = DIV_ROUND_UP(cinfo->clkdco, max_dsi_fck); in dsi_pll_calc_dsi_fck()
910 cinfo->clkout[HSDIV_DSI] = cinfo->clkdco / cinfo->mX[HSDIV_DSI]; in dsi_pll_calc_dsi_fck()
998 cinfo->clkdco, cinfo->m); in dsi_dump_dsi_clocks()
1026 cinfo->clkdco / 4); in dsi_dump_dsi_clocks()
1326 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ns2ddr()
1333 unsigned long ddr_clk = dsi->pll.cinfo.clkdco / 4; in ddr2ns()
3690 unsigned long clkdco, void *data) in dsi_cm_calc_pll_cb() argument
3698 ctx->dsi_cinfo.clkdco = clkdco; in dsi_cm_calc_pll_cb()
3700 return dss_pll_hsdiv_calc_a(ctx->pll, clkdco, ctx->req_pck_min, in dsi_cm_calc_pll_cb()
[all …]
Dhdmi4.c189 r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
Dhdmi5.c188 r = hdmi_phy_configure(&hdmi->phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()