drm/i915: refactor pll code out into intel_dpll.c
authorDave Airlie <airlied@redhat.com>
Thu, 14 Jan 2021 11:13:46 +0000 (13:13 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 15 Jan 2021 22:12:47 +0000 (00:12 +0200)
commit8cf41f316e6497c043c161606959d39dcba265e6
treedac6e63d11b8231a8f89a048727f095f7dc8debe
parentfbf756c31cca387510f4950bdd9704162e8196da
drm/i915: refactor pll code out into intel_dpll.c

This pulls a large chunk of the pll calculation code out of
intel_display.c to a new file.

One function makes sense to be an inline, otherwise this
is pretty much a straight copy cover. Also all the
remaining hooks for g45 and older end up the same now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
[Jani: cleaned up intel_dpll.h a bit, de-duped intel_panel_use_ssc().]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/74b58e0572858b5d1734818ca594a23040d7d44f.1610622609.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dpll.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_dpll.h [new file with mode: 0644]