]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mgag200: Bug fix: Renesas board now selects native resolution.
authorJulia Lemire <jlemire@matrox.com>
Thu, 7 Mar 2013 15:41:03 +0000 (10:41 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Mar 2013 22:31:49 +0000 (08:31 +1000)
commit06cf40b8062b0023ac5aa19fa618b45d7fee05c9
tree36899e62acabcc928b640936d068bfdc3898c701
parenta1cf5d8c561435454a6e23075661d8b296010688
drm/mgag200: Bug fix: Renesas board now selects native resolution.

Renesas boards were consistently defaulting to the 1024x768 resolution,
regardless of the native resolution of the monitor plugged in.  It was
determined that the EDID of the monitor was not being read.  Since the
DAC is a shared line, in order to read from or write to it we must take
control of the DAC clock.  This can be done by setting the proper
register to one.

This bug fix sets the register MGA1064_GEN_IO_CTL2 to one.  The DAC
control line can be used to determine whether or not a new monitor has
been plugged in.  But since the hotplug feature is not one we will
support, it has been decided to simply leave the register set to one.

Signed-off-by: Julia Lemire <jlemire@matrox.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/mgag200/mgag200_i2c.c