drm/i915: fix pixel color depth setting on eDP
authorZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 11 Jan 2010 21:38:31 +0000 (05:38 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 15 Jan 2010 22:13:06 +0000 (14:13 -0800)
commit885a5fb5b120a5c7e0b3baad7b0feb5a89f76c18
treec0a636d952445b79d7e2301e1796b6c175c27c8a
parent500a8cc466a24e2fbc4c86ef9c6467ae2ffdeb0c
drm/i915: fix pixel color depth setting on eDP

Original DP mode_valid check didn't take pixel color depth into account,
which made one 1600x900 eDP panel's mode check invalid because of overclock,
but actually this 6bpc panel does can work with x1 lane at 2.7G. This one
trys to take bpp value properly both in mode validation and mode setting.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp.c