Home
last modified time | relevance | path

Searched refs:sel_clk (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/armada/
Darmada_510.c17 struct clk *sel_clk; member
125 v->sel_clk = res.clk; in armada510_crtc_compute_clock()
147 if (!dcrtc->clk && v->sel_clk) { in armada510_crtc_enable()
148 if (!WARN_ON(clk_prepare_enable(v->sel_clk))) in armada510_crtc_enable()
149 dcrtc->clk = v->sel_clk; in armada510_crtc_enable()
/linux-6.12.1/drivers/gpu/drm/nouveau/dispnv04/
Ddfp.c218 state->sel_clk |= bits1618; in nv04_dfp_prepare_sel_clk()
220 state->sel_clk &= ~bits1618; in nv04_dfp_prepare_sel_clk()
237 if (nv_encoder->dcb->type == DCB_OUTPUT_LVDS && nv04_display(dev)->saved_reg.sel_clk & 0xf0) { in nv04_dfp_prepare_sel_clk()
238 int shift = (nv04_display(dev)->saved_reg.sel_clk & 0x50) ? 0 : 1; in nv04_dfp_prepare_sel_clk()
240 state->sel_clk &= ~0xf0; in nv04_dfp_prepare_sel_clk()
241 state->sel_clk |= (head ? 0x40 : 0x10) << shift; in nv04_dfp_prepare_sel_clk()
556 nv04_display(dev)->mode_reg.sel_clk = NVReadRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK); in nv04_lvds_dpms()
557 nv04_display(dev)->mode_reg.sel_clk &= ~0xf0; in nv04_lvds_dpms()
559 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK, nv04_display(dev)->mode_reg.sel_clk); in nv04_lvds_dpms()
Ddisp.h80 uint32_t sel_clk; member
Dcrtc.c665 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK, nv04_display(dev)->mode_reg.sel_clk); in nv_crtc_mode_set()
686 state->sel_clk = saved->sel_clk & ~(0x5 << 16); in nv_crtc_save()
Dhw.c406 state->sel_clk = NVReadRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK); in nv_save_state_ramdac()
483 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK, state->sel_clk); in nv_load_state_ramdac()
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dpll.c389 u32 sel_clk = nvkm_rd32(device, 0x680524); in nvbios_pll_parse() local
390 if ((info->reg == 0x680508 && sel_clk & 0x20) || in nvbios_pll_parse()
391 (info->reg == 0x680520 && sel_clk & 0x80)) { in nvbios_pll_parse()
/linux-6.12.1/drivers/gpu/drm/nouveau/
Dnouveau_bios.c220 uint32_t sel_clk_binding, sel_clk; in call_lvds_script() local
249 sel_clk = NVReadRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK) & ~0x50000; in call_lvds_script()
250 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK, sel_clk | sel_clk_binding); in call_lvds_script()
641 uint32_t sel_clk_binding, sel_clk; in run_tmds_table() local
673 sel_clk = NVReadRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK) & ~0x50000; in run_tmds_table()
674 NVWriteRAMDAC(dev, 0, NV_PRAMDAC_SEL_CLK, sel_clk | sel_clk_binding); in run_tmds_table()
/linux-6.12.1/drivers/spi/
Dspi-mt65xx.c162 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member
1211 mdata->sel_clk = devm_clk_get(dev, "sel-clk"); in mtk_spi_probe()
1212 if (IS_ERR(mdata->sel_clk)) in mtk_spi_probe()
1213 return dev_err_probe(dev, PTR_ERR(mdata->sel_clk), "failed to get sel-clk\n"); in mtk_spi_probe()
1223 ret = clk_set_parent(mdata->sel_clk, mdata->parent_clk); in mtk_spi_probe()
/linux-6.12.1/drivers/gpu/drm/i2c/
Dtda998x_drv.c1447 u8 reg, div, rep, sel_clk; in tda998x_bridge_mode_set() local
1525 sel_clk = SEL_CLK_ENA_SC_CLK | SEL_CLK_SEL_CLK1 | in tda998x_bridge_mode_set()
1570 reg_write(priv, REG_SEL_CLK, sel_clk); in tda998x_bridge_mode_set()