OSDN Git Service

OMAPDSS: DISPC: Fix scaling constraints for OMAP4
authorArchit Taneja <archit@ti.com>
Mon, 30 Jan 2012 05:24:17 +0000 (10:54 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 21 Feb 2012 07:39:30 +0000 (09:39 +0200)
commit79ee89cdbd9a58baa079d019574d11aa864b7842
tree7ae253a1330e31df9916f994f3e2871eefa10336
parentc124f23dfdf7da890405dfa0efbeb015cab27b56
OMAPDSS: DISPC: Fix scaling constraints for OMAP4

The calculation of required DISPC_FCLK for downscaling is done by multplying the
pixel clock with an integer factor. This isn't true for OMAP4 where the required
clock is calculated using the exact ratio of downscaling done.

Fix this calculation for OMAP4. Also, do a minor clean up of calc_fclk().

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c