Skip to content

Commit

Permalink
drm/mgag200: Bug fix: Renesas board now selects native resolution.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
Julia Lemire authored and airlied committed Mar 7, 2013
1 parent 0ba5317 commit ce49596
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/mgag200/mgag200_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ struct mga_i2c_chan *mgag200_i2c_create(struct drm_device *dev)
int ret;
int data, clock;

WREG_DAC(MGA1064_GEN_IO_CTL2, 1);
WREG_DAC(MGA1064_GEN_IO_DATA, 0xff);
WREG_DAC(MGA1064_GEN_IO_CTL, 0);

Expand Down

0 comments on commit ce49596

Please sign in to comment.