From db3157cfee6881d8095c4f96cd1fa5d5da9a5c68 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 31 Jul 2013 16:47:31 -0700 Subject: Add cpu transcoder attribute to intel dp Also, used this attribute in the calculation of htotal and other registers Added intel_dp_* functions for m,n registers and dimension register calculations Change-Id: I99dd7156700d59b0b4c85e34c9aa1c6408c7f31a Reviewed-on: https://gerrit.chromium.org/gerrit/64001 Reviewed-by: Ronald G. Minnich Commit-Queue: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-on: http://review.coreboot.org/4422 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/drivers/intel/gma/i915.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/drivers/intel/gma/i915.h') diff --git a/src/drivers/intel/gma/i915.h b/src/drivers/intel/gma/i915.h index 1aed2bfb09..12a7ee02bb 100644 --- a/src/drivers/intel/gma/i915.h +++ b/src/drivers/intel/gma/i915.h @@ -56,6 +56,13 @@ enum pipe { I915_NUM_PIPES }; +enum transcoder { + TRANSCODER_A = 0, + TRANSCODER_B, + TRANSCODER_C, + TRANSCODER_EDP = 0xF, +}; + /* debug enums. These are for printks that, due to their place in the * middle of graphics device IO, might change timing. Use with care * or not at all. @@ -160,6 +167,7 @@ struct intel_dp { u32 stride; struct intel_dp_m_n m_n; u32 flags; + u32 transcoder; }; /* we may yet need these. */ @@ -221,3 +229,9 @@ u32 intel_ddi_calc_transcoder_flags(u32 pipe_bpp, int type, int lane_count, int pf_sz); + +enum transcoder intel_ddi_get_transcoder(enum port port, + enum pipe pipe); + +void intel_dp_set_m_n_regs(struct intel_dp *intel_dp); +void intel_dp_set_resolution(struct intel_dp *intel_dp); -- cgit v1.2.3