drm/i915/tgl: Add hpd interrupt handling
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 25 Jul 2019 23:48:11 +0000 (16:48 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 30 Jul 2019 19:31:08 +0000 (12:31 -0700)
commit52dfdba0a987689c56bf7013304cf1041d841064
treeda81695769ff2f3c0fadb19dc75ee04a212a2fdb
parente0e712fe42ef67bdf45fc348767d1d0a4eeba77f
drm/i915/tgl: Add hpd interrupt handling

Add hotdplug detection for all ports on TGP. icp_hpd_detection_setup()
is refactored to be shared with TGP.

While we increase the number of pins, add a BUILD_BUG_ON() to avoid
going over the number of bits allowed.

v2: use BITS_PER_TYPE and correct type for BUILD_BUG_ON() check
    (requested by Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jose Souza <jose.souza@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190725234813.27179-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_hotplug.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h