summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dispc.c
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2011-09-08 09:55:17 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 15:17:27 +0200
commit0373cac6cc7eef7ada03269288088e3cbee232c0 (patch)
tree181bff7c26aaed5a0e4fa40259dbef2522911171 /drivers/video/omap2/dss/dispc.c
parentOMAPDSS: DISPC: Clean up scaling related clock and five tap calculations (diff)
downloadlinux-0373cac6cc7eef7ada03269288088e3cbee232c0.tar.xz
linux-0373cac6cc7eef7ada03269288088e3cbee232c0.zip
OMAPDSS: FEATURES: Create a range param to get max downscaling
Create a dss_range_param member called FEAT_PARAM_DOWNSCALE to get the maximum downscaling possible on the current platform. Use this in dispc_ovl_calc_scaling(). Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/dispc.c')
-rw-r--r--drivers/video/omap2/dss/dispc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index 68a11e382f3a..5e6849e224c2 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -1692,7 +1692,7 @@ static int dispc_ovl_calc_scaling(enum omap_plane plane,
enum omap_color_mode color_mode, bool *five_taps)
{
struct omap_overlay *ovl = omap_dss_get_overlay(plane);
- const int maxdownscale = cpu_is_omap34xx() ? 4 : 2;
+ const int maxdownscale = dss_feat_get_param_max(FEAT_PARAM_DOWNSCALE);
unsigned long fclk = 0;
if ((ovl->caps & OMAP_DSS_OVL_CAP_SCALE) == 0) {