diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-01-13 18:41:31 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-03-03 17:36:42 +0200 |
commit | 3a38ed53bebd1c14925a711123c911e07dd11adf (patch) | |
tree | 1acaf788c0de763a0a3dd80dab77a23e04163429 /drivers/gpu/drm/omapdrm/dss | |
parent | 61f3c40b489c7f3ca2f844e6513c1abd08e66a93 (diff) | |
download | op-kernel-dev-3a38ed53bebd1c14925a711123c911e07dd11adf.zip op-kernel-dev-3a38ed53bebd1c14925a711123c911e07dd11adf.tar.gz |
drm/omap: DISPC: support double-pixel mode
We need double-pixel mode (pixel repetition) for interlace modes. This
patch adds the necessary support to DISPC to output double-pixel mode.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/dispc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c index 6b50476..1e7f269 100644 --- a/drivers/gpu/drm/omapdrm/dss/dispc.c +++ b/drivers/gpu/drm/omapdrm/dss/dispc.c @@ -104,6 +104,8 @@ struct dispc_features { bool supports_sync_align:1; bool has_writeback:1; + + bool supports_double_pixel:1; }; #define DISPC_MAX_NR_FIFOS 5 @@ -3287,6 +3289,10 @@ void dispc_mgr_set_timings(enum omap_channel channel, } else { if (t.interlace) t.y_res /= 2; + + if (dispc.feat->supports_double_pixel) + REG_FLD_MOD(DISPC_CONTROL, t.double_pixel ? 1 : 0, + 19, 17); } dispc_mgr_set_size(channel, t.x_res, t.y_res); @@ -3951,6 +3957,7 @@ static const struct dispc_features omap44xx_dispc_feats = { .set_max_preload = true, .supports_sync_align = true, .has_writeback = true, + .supports_double_pixel = true, }; static const struct dispc_features omap54xx_dispc_feats = { @@ -3974,6 +3981,7 @@ static const struct dispc_features omap54xx_dispc_feats = { .set_max_preload = true, .supports_sync_align = true, .has_writeback = true, + .supports_double_pixel = true, }; static int dispc_init_features(struct platform_device *pdev) |