[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-intel-gfx
Subject: [Intel-gfx] [PATCH 4/4] drm/i915: add PLL enable/disable functions
From: jbarnes () virtuousgeek ! org (Jesse Barnes)
Date: 2010-12-30 21:47:52
Message-ID: 20101230134752.47bbd5c7 () jbarnes-desktop
[Download RAW message or body]
On Thu, 30 Dec 2010 21:41:18 +0000
Chris Wilson <chris at chris-wilson.co.uk> wrote:
> On Thu, 30 Dec 2010 13:16:32 -0800, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
> > /**
> > + * intel_enable_pll - enable a PLL
> > + * @dev_priv: i915 private structure
> > + * @pipe: pipe PLL to enable
> > + *
> > + * Enable @pipe's PLL so we can start pumping pixels from a plane. Check to
> > + * make sure the PLL reg is writable first though, since the panel write
> > + * protect mechanism may be enabled.
> > + *
> > + * Note! This is for pre-ILK only.
> > + */
> > +static void intel_enable_pll(struct drm_i915_private *dev_priv, enum pipe pipe)
> > +{
> > + int reg;
> > + u32 val;
>
> Reinforce the comments with a BUG_ON(dev_priv->info->gen >= 5);
Ah good call. Fixed. Also moved the "don't disable" quirks check into
the proper function (the disable one!).
--
Jesse Barnes, Intel Open Source Technology Center
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic