drm/i915/crt: split out intel_crt_present() to platform specific setup
authorJani Nikula <jani.nikula@intel.com>
Tue, 22 Jan 2019 08:23:01 +0000 (10:23 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 24 Jan 2019 07:29:19 +0000 (09:29 +0200)
commit63cb4e641af1e81796a9e45c10a17a88742b5a2d
treea04986bcdf7a7b50ca1d734e997ff4f274a1b447
parent85e2d61e49768f85346fe7ff133625eabf0946fe
drm/i915/crt: split out intel_crt_present() to platform specific setup

With new platforms not having CRT support and most conditions in
intel_crt_present() being specific to DDI, split out the CRT
initialization to platform specific blocks in the if ladder. Add new
Pineview block for this.

This puts intel_crt_init() more in line with the rest of the outputs,
and makes it slightly easier for the uninitiated to figure out which
platforms actually have what.

v2: keep gen >= 9 check in intel_ddi_crt_present() (Ville)

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190122082307.4003-1-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_display.c