/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_clocks.c | 42 struct radeon_pll *spll = &rdev->clock.spll; in radeon_legacy_get_engine_clock() local 48 fb_div *= spll->reference_freq; in radeon_legacy_get_engine_clock() 111 struct radeon_pll *spll = &rdev->clock.spll; in radeon_read_clocks_OF() local 150 spll->reference_freq = mpll->reference_freq = p1pll->reference_freq; in radeon_read_clocks_OF() 151 spll->reference_div = mpll->reference_div = in radeon_read_clocks_OF() 186 struct radeon_pll *spll = &rdev->clock.spll; in radeon_get_clock_info() local 214 if (spll->reference_div < 2) in radeon_get_clock_info() 215 spll->reference_div = in radeon_get_clock_info() 220 mpll->reference_div = spll->reference_div; in radeon_get_clock_info() 233 spll->reference_freq = 1432; in radeon_get_clock_info() [all …]
|
H A D | radeon_combios.c | 720 struct radeon_pll *spll = &rdev->clock.spll; in radeon_combios_get_clock_info() local 747 spll->reference_freq = RBIOS16(pll_info + 0x1a); in radeon_combios_get_clock_info() 748 spll->reference_div = RBIOS16(pll_info + 0x1c); in radeon_combios_get_clock_info() 749 spll->pll_out_min = RBIOS32(pll_info + 0x1e); in radeon_combios_get_clock_info() 750 spll->pll_out_max = RBIOS32(pll_info + 0x22); in radeon_combios_get_clock_info() 753 spll->pll_in_min = RBIOS32(pll_info + 0x48); in radeon_combios_get_clock_info() 754 spll->pll_in_max = RBIOS32(pll_info + 0x4c); in radeon_combios_get_clock_info() 757 spll->pll_in_min = 40; in radeon_combios_get_clock_info() 758 spll->pll_in_max = 500; in radeon_combios_get_clock_info()
|
H A D | radeon_atombios.c | 1135 struct radeon_pll *spll = &rdev->clock.spll; in radeon_atom_get_clock_info() local 1188 spll->reference_freq = in radeon_atom_get_clock_info() 1191 spll->reference_freq = in radeon_atom_get_clock_info() 1193 spll->reference_div = 0; in radeon_atom_get_clock_info() 1195 spll->pll_out_min = in radeon_atom_get_clock_info() 1197 spll->pll_out_max = in radeon_atom_get_clock_info() 1201 if (spll->pll_out_min == 0) { in radeon_atom_get_clock_info() 1203 spll->pll_out_min = 64800; in radeon_atom_get_clock_info() 1205 spll->pll_out_min = 20000; in radeon_atom_get_clock_info() 1208 spll->pll_in_min = in radeon_atom_get_clock_info() [all …]
|
H A D | rv6xx_dpm.c | 163 u32 ref_clk = rdev->clock.spll.reference_freq; in rv6xx_output_stepping() 428 u32 ref_clk = rdev->clock.spll.reference_freq; in rv6xx_compute_count_for_delay() 551 u32 ref_clk = rdev->clock.spll.reference_freq; in rv6xx_program_engine_spread_spectrum() 840 u32 ref_clk = rdev->clock.spll.reference_freq; in rv6xx_program_bsp()
|
H A D | rv740_dpm.c | 130 u32 reference_clock = rdev->clock.spll.reference_freq; in rv740_populate_sclk_value()
|
H A D | rs780_dpm.c | 991 u32 sclk = (rdev->clock.spll.reference_freq * current_fb_div) / in rs780_dpm_debugfs_print_current_performance_level() 1013 u32 sclk = (rdev->clock.spll.reference_freq * current_fb_div) / in rs780_dpm_get_current_sclk()
|
H A D | rv730_dpm.c | 49 u32 reference_clock = rdev->clock.spll.reference_freq; in rv730_populate_sclk_value()
|
H A D | radeon_kms.c | 348 *value = rdev->clock.spll.reference_freq * 10; in radeon_info_ioctl()
|
H A D | radeon_uvd.c | 958 unsigned vco_freq, ref_freq = rdev->clock.spll.reference_freq; in radeon_uvd_calc_upll_dividers()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_atomfirmware.c | 708 struct amdgpu_pll *spll = &adev->clock.spll; in amdgpu_atomfirmware_get_clock_info() local 743 spll->reference_freq = le32_to_cpu(smu_info->v31.core_refclk_10khz); in amdgpu_atomfirmware_get_clock_info() 745 spll->reference_freq = le32_to_cpu(smu_info->v40.core_refclk_10khz); in amdgpu_atomfirmware_get_clock_info() 747 spll->reference_div = 0; in amdgpu_atomfirmware_get_clock_info() 748 spll->min_post_div = 1; in amdgpu_atomfirmware_get_clock_info() 749 spll->max_post_div = 1; in amdgpu_atomfirmware_get_clock_info() 750 spll->min_ref_div = 2; in amdgpu_atomfirmware_get_clock_info() 751 spll->max_ref_div = 0xff; in amdgpu_atomfirmware_get_clock_info() 752 spll->min_feedback_div = 4; in amdgpu_atomfirmware_get_clock_info() 753 spll->max_feedback_div = 0xff; in amdgpu_atomfirmware_get_clock_info() [all …]
|
H A D | amdgpu_atombios.c | 570 struct amdgpu_pll *spll = &adev->clock.spll; in amdgpu_atombios_get_clock_info() local 616 spll->reference_freq = in amdgpu_atombios_get_clock_info() 618 spll->reference_div = 0; in amdgpu_atombios_get_clock_info() 620 spll->pll_out_min = in amdgpu_atombios_get_clock_info() 622 spll->pll_out_max = in amdgpu_atombios_get_clock_info() 626 if (spll->pll_out_min == 0) in amdgpu_atombios_get_clock_info() 627 spll->pll_out_min = 64800; in amdgpu_atombios_get_clock_info() 629 spll->pll_in_min = in amdgpu_atombios_get_clock_info() 631 spll->pll_in_max = in amdgpu_atombios_get_clock_info() 634 spll->min_post_div = 1; in amdgpu_atombios_get_clock_info() [all …]
|
H A D | soc24.c | 99 return adev->clock.spll.reference_freq; in soc24_get_xclk()
|
H A D | si.c | 1469 u32 reference_clock = adev->clock.spll.reference_freq; in si_get_xclk() 1723 unsigned vco_freq, ref_freq = adev->clock.spll.reference_freq; in si_calc_upll_dividers()
|
H A D | soc21.c | 234 return adev->clock.spll.reference_freq; in soc21_get_xclk()
|
H A D | nv.c | 313 return adev->clock.spll.reference_freq; in nv_get_xclk()
|
H A D | soc15.c | 325 u32 reference_clock = adev->clock.spll.reference_freq; in soc15_get_xclk()
|
H A D | cik.c | 919 u32 reference_clock = adev->clock.spll.reference_freq; in cik_get_xclk()
|
H A D | amdgpu.h | 420 struct amdgpu_pll spll; member
|
/linux/drivers/clk/microchip/ |
H A D | clk-core.c | 735 struct pic32_sys_pll *spll; in pic32_spll_clk_register() local 738 spll = devm_kzalloc(core->dev, sizeof(*spll), GFP_KERNEL); in pic32_spll_clk_register() 739 if (!spll) in pic32_spll_clk_register() 742 spll->core = core; in pic32_spll_clk_register() 743 spll->hw.init = &data->init_data; in pic32_spll_clk_register() 744 spll->ctrl_reg = data->ctrl_reg + core->iobase; in pic32_spll_clk_register() 745 spll->status_reg = data->status_reg + core->iobase; in pic32_spll_clk_register() 746 spll->lock_mask = data->lock_mask; in pic32_spll_clk_register() 749 spll->idiv = (readl(spll->ctrl_reg) >> PLL_IDIV_SHIFT) & PLL_IDIV_MASK; in pic32_spll_clk_register() 750 spll->idiv += 1; in pic32_spll_clk_register() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | nv40.c | 36 u32 spll; member 175 clk->spll = 0xc0000000 | (log2P << 16) | (N1 << 8) | M1; in nv40_clk_calc() 178 clk->spll = 0x00000000; in nv40_clk_calc() 193 nvkm_mask(device, 0x004008, 0xc007ffff, clk->spll); in nv40_clk_prog()
|
H A D | nv50.c | 475 clk_mask(hwsq, spll[0], 0xc03f0100, (P1 << 19) | (P1 << 16)); in nv50_clk_calc() 482 clk_mask(hwsq, spll[0], 0xc03f0100, in nv50_clk_calc() 484 clk_mask(hwsq, spll[1], 0x0000ffff, (N << 8) | M); in nv50_clk_calc()
|
/linux/drivers/clk/imx/ |
H A D | clk-imx31.c | 39 dummy, ckih, ckil, mpll, spll, upll, mcu_main, hsp, ahb, nfc, ipg, enumerator 59 clk[spll] = imx_clk_pllv1(IMX_PLLV1_IMX31, "spll", "ckih", base + MXC_CCM_SRPCTL); in _mx31_clocks_init()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_dpll_mgr.h | 193 u32 spll; member
|
H A D | intel_dpll_mgr.c | 706 intel_de_write(i915, SPLL_CTL, hw_state->spll); in hsw_ddi_spll_enable() 779 hw_state->spll = val; in hsw_ddi_spll_get_hw_state() 1153 hw_state->spll = in hsw_ddi_spll_compute_dpll() 1177 switch (hw_state->spll & SPLL_FREQ_MASK) { in hsw_ddi_spll_get_freq() 1254 hw_state->wrpll, hw_state->spll); in hsw_dump_hw_state() 1264 a->spll == b->spll; in hsw_compare_hw_state()
|
/linux/drivers/clk/samsung/ |
H A D | clk-exynos5420.c | 153 apll, cpll, dpll, epll, rpll, ipll, spll, vpll, mpll, enumerator 1477 [spll] = PLL(pll_2550, CLK_FOUT_SPLL, "fout_spll", "fin_pll", SPLL_LOCK,
|