drm/i915: allow platforms without eDP transcoder
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 22 Feb 2019 23:02:54 +0000 (15:02 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 4 Mar 2019 23:07:59 +0000 (15:07 -0800)
commitbc7e35252eaca53ae605b1332bc5178881b662ab
tree45c6a9a4945a615787140610496935b3fc1ddf83
parent062de72bc0c73f4b9fa8532e5a98bf609ebd08da
drm/i915: allow platforms without eDP transcoder

Define a HAS_TRANSCODER_EDP() macro that checks if we have defined an
offset for this transcoder. This allows platforms to be defined without
eDP transcoder.

Cc: Mika Kahola <mika.kahola@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190222230254.20351-2-lucas.demarchi@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_display.c