[Intel-gfx] [PATCH 2/2]IGD: workaround i2c bus issue in gfx driver side
Zhenyu Wang
zhenyu.z.wang at intel.com
Mon Mar 16 08:02:28 CET 2009
On 2009.03.16 14:45:28 +0800, Shaohua Li wrote:
> In IGD, DPCUNIT_CLOCK_GATE_DISABLE bit should be set, otherwise i2c
> access will be wrong.
>
> Signed-off-by: Shaohua Li <shaohua.li at intel.com>
> ---
> src/i830_driver.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> Index: xf86_video_intel/src/i830_driver.c
> ===================================================================
> --- xf86_video_intel.orig/src/i830_driver.c
> +++ xf86_video_intel/src/i830_driver.c
> @@ -1057,6 +1057,11 @@ I830PreInitDDC(ScrnInfoPtr pScrn)
> pI830->ddc2 = FALSE;
> }
> }
> +
> + if (IS_IGD(pI830)) {
> + /* Driver is using bit bashing for I2C, this bit should be set to 1 */
> + OUTREG(DSPCLK_GATE_D, INREG(DSPCLK_GATE_D) | DPCUNIT_CLOCK_GATE_DISABLE);
> + }
> }
>
> static void
Looks this should be in i830_init_clock_gating(), and KMS needs to be ported as well.
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20090316/3f2b8f0f/attachment.sig>
More information about the Intel-gfx
mailing list