From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rodrigo Vivi Subject: Re: [PATCH 09/37] drm/i915: add definitions for DDI_BUF_CTL registers Date: Mon, 26 Mar 2012 14:36:15 -0300 Message-ID: References: <1332378612-3814-1-git-send-email-eugeni.dodonov@intel.com> <1332378612-3814-10-git-send-email-eugeni.dodonov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-yx0-f177.google.com (mail-yx0-f177.google.com [209.85.213.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 67DA0A0AC9 for ; Mon, 26 Mar 2012 10:36:16 -0700 (PDT) Received: by yenm10 with SMTP id m10so4573021yen.36 for ; Mon, 26 Mar 2012 10:36:16 -0700 (PDT) In-Reply-To: <1332378612-3814-10-git-send-email-eugeni.dodonov@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Eugeni Dodonov Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org * indentation Reviewed-by: Rodrigo Vivi On Wed, Mar 21, 2012 at 10:09 PM, Eugeni Dodonov wrote: > There is one instance of those registers for each DDI port. > > Signed-off-by: Eugeni Dodonov > --- > =A0drivers/gpu/drm/i915/i915_reg.h | =A0 23 +++++++++++++++++++++++ > =A01 file changed, 23 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_= reg.h > index 3831fe7..2927460 100644 > --- a/drivers/gpu/drm/i915/i915_reg.h > +++ b/drivers/gpu/drm/i915/i915_reg.h > @@ -3914,4 +3914,27 @@ > =A0#define DP_TP_STATUS_E =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x64444 > =A0#define =A0DP_TP_STATUS_AUTOTRAIN_DONE =A0 (1<<12) > > +/* DDI Buffer Control */ > +#define DDI_BUF_CTL_A =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A00x64000 > +#define DDI_BUF_CTL_B =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A00x64100 > +#define DDI_BUF_CTL_C =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A00x64200 > +#define DDI_BUF_CTL_D =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A00x64300 > +#define DDI_BUF_CTL_E =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A00x64400 > +#define =A0DDI_BUF_CTL_ENABLE =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(1<= <31) > +#define =A0DDI_BUF_EMP_400MV_0DB_HSW =A0 =A0 =A0 =A0 =A0 =A0 (0<<24) =A0= /* Sel0 */ > +#define =A0DDI_BUF_EMP_400MV_3_5DB_HSW =A0 (1<<24) =A0 /* Sel1 */ > +#define =A0DDI_BUF_EMP_400MV_6DB_HSW =A0 =A0 =A0 =A0 =A0 =A0 (2<<24) =A0= /* Sel2 */ > +#define =A0DDI_BUF_EMP_400MV_9_5DB_HSW =A0 (3<<24) =A0 /* Sel3 */ > +#define =A0DDI_BUF_EMP_600MV_0DB_HSW =A0 =A0 =A0 =A0 =A0 =A0 (4<<24) =A0= /* Sel4 */ > +#define =A0DDI_BUF_EMP_600MV_3_5DB_HSW =A0 (5<<24) =A0 /* Sel5 */ > +#define =A0DDI_BUF_EMP_600MV_6DB_HSW =A0 =A0 =A0 =A0 =A0 =A0 (6<<24) =A0= /* Sel6 */ > +#define =A0DDI_BUF_EMP_800MV_0DB_HSW =A0 =A0 =A0 =A0 =A0 =A0 (7<<24) =A0= /* Sel7 */ > +#define =A0DDI_BUF_EMP_800MV_3_5DB_HSW =A0 (8<<24) =A0 /* Sel8 */ > +#define =A0DDI_BUF_EMP_MASK =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0(0xf<<24) > +#define =A0DDI_BUF_IS_IDLE =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 (1<<7) > +#define =A0DDI_PORT_WIDTH_X1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 (0<<1) > +#define =A0DDI_PORT_WIDTH_X2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 (1<<1) > +#define =A0DDI_PORT_WIDTH_X4 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 (3<<1) > +#define =A0DDI_INIT_DISPLAY_DETECTED =A0 =A0 =A0 =A0 =A0 =A0 (1<<0) > + > =A0#endif /* _I915_REG_H_ */ > -- > 1.7.9.2 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- = Rodrigo Vivi Blog: http://blog.vivi.eng.br GPG: 0x905BE242 @ wwwkeys.pgp.net