]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
viafb: fix IGA1 modesetting on VX900
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 22 Feb 2012 18:53:08 +0000 (18:53 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 24 Feb 2012 00:38:14 +0000 (00:38 +0000)
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
drivers/video/via/hw.c

index 8bdf80e270e2b307f724027cb2c66ab218f40470..8497727d66de0d282d158d35a22b938918f3356a 100644 (file)
@@ -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));