]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Unify the DPLL ref clock frequency tracking
authorImre Deak <imre.deak@intel.com>
Fri, 28 Feb 2020 15:33:28 +0000 (17:33 +0200)
committerImre Deak <imre.deak@intel.com>
Mon, 2 Mar 2020 17:36:22 +0000 (19:36 +0200)
commitd3c10ee343dcb609f472948691bd0aaa5fd31c12
treea1faa650c4512160fb3af42f3303281aa5a4b2ea
parentc0291fc9718bf29c43cd2e200bf00bce90f86f57
drm/i915: Unify the DPLL ref clock frequency tracking

All platforms using the shared DPLL framework use 3 reference clocks for
their DPLLs: SSC, non-SSC and DSI. For a more unified way across
platforms store the frequency of these ref clocks as part of the DPLL
global state. This also allows us to keep the HW access reading out the
ref clock value separate from the DPLL frequency calculation that
depends on the ref clock.

For now add only the SSC and non-SSC ref clocks, as the pre-ICL DSI code
has its own logic for calculating DPLL parameters instead of the shared
DPLL framework.

v2:
- Apply the ICL combo PHY PLL ref_clock/2 adjustment during the
  frequency->PLL param conversion direction as well. (CI shards)
- s/kHZ/kHz/ (Ville)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200228153328.17842-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/i915_drv.h