Skip to content

Commit

Permalink
viafb: select HW scaling on VX900 for IGA2
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Florian Tobias Schandinat authored and Florian Tobias Schandinat committed Feb 24, 2012
1 parent 4761c60 commit 050f0e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/via/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,7 @@ static void hw_init(void)
}

/* 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));

/* Fill VPIT Parameters */
Expand Down

0 comments on commit 050f0e0

Please sign in to comment.