Skip to content

Commit

Permalink
viafb: fix IGA1 modesetting on VX900
Browse files Browse the repository at this point in the history
Even if the documentation calls this bit "Reserved" it has to be set
to 0 for correct modesetting on IGA1.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: stable@vger.kernel.org
  • Loading branch information
Florian Tobias Schandinat authored and Florian Tobias Schandinat committed Feb 24, 2012
1 parent 050f0e0 commit e292063
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/video/via/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,9 @@ static void hw_init(void)
break;
}

/* magic required on VX900 for correct modesetting on IGA1 */
via_write_reg_mask(VIACR, 0x45, 0x00, 0x01);

/* probably this should go to the scaling code one day */
via_write_reg_mask(VIACR, 0xFD, 0, 0x80); /* VX900 hw scale on IGA2 */
viafb_write_regx(scaling_parameters, ARRAY_SIZE(scaling_parameters));
Expand Down

0 comments on commit e292063

Please sign in to comment.