drm/i915: Improve CRTDDC mapping by using VBT info
authorDavid Müller (ELSOFT AG) <d.mueller@elsoft.ch>
Sat, 29 Aug 2009 06:54:45 +0000 (08:54 +0200)
committerEric Anholt <eric@anholt.net>
Sun, 30 Aug 2009 01:23:40 +0000 (18:23 -0700)
commitdb54501900ad3665dd669f5708ecd04fc5aed495
tree023eac651618698ab37f3e3112f957a07b6192eb
parenta09ba7faf75fa4b21980d81de8e5f3d5c0785ccf
drm/i915: Improve CRTDDC mapping by using VBT info

Use VBT information to determine which DDC bus to use for CRTDCC.
Fall back to GPIOA if VBT info is not available.

Signed-off-by: David Müller <d.mueller@elsoft.ch>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Tested on: 855 (David), and 945GM, 965GM, GM45, and G45 (anholt)
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_crt.c