aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-02-22 13:53:07 -0500
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-02-23 19:38:02 -0500
commit050f0e02c8dc38b2b4f2df345ac760d22ca5c7ba (patch)
tree88cff963c180c3d131250347d55fcd959b176a1f
parent4761c603dd8ada15ae2f45a9cc91e20dd12e48cf (diff)
viafb: select HW scaling on VX900 for IGA2
VX900 can do hardware scaling for both IGAs in contrast to previous hardware which could do it only for IGA2. This patch ensures that we set the parameter for IGA2 and not for IGA1. This fixes hardware scaling on VX900 until we have the infrastructure to support it for both IGAs. Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Cc: stable@vger.kernel.org
-rw-r--r--drivers/video/via/hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/via/hw.c b/drivers/video/via/hw.c
index d5aaca9cfa7..8bdf80e270e 100644
--- a/drivers/video/via/hw.c
+++ b/drivers/video/via/hw.c
@@ -1811,6 +1811,7 @@ static void hw_init(void)
1811 } 1811 }
1812 1812
1813 /* probably this should go to the scaling code one day */ 1813 /* probably this should go to the scaling code one day */
1814 via_write_reg_mask(VIACR, 0xFD, 0, 0x80); /* VX900 hw scale on IGA2 */
1814 viafb_write_regx(scaling_parameters, ARRAY_SIZE(scaling_parameters)); 1815 viafb_write_regx(scaling_parameters, ARRAY_SIZE(scaling_parameters));
1815 1816
1816 /* Fill VPIT Parameters */ 1817 /* Fill VPIT Parameters */