gpu: ipu-di: Add ipu_di_adjust_videomode()
authorJiada Wang <jiada_wang@mentor.com>
Fri, 19 Dec 2014 02:00:20 +0000 (18:00 -0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 7 Jan 2015 18:12:07 +0000 (19:12 +0100)
commit6541d71082fdb91f862c92920c6530e4e0548d6f
tree254653c61e3d12abc3aed43f89afbfe56851759b
parentf66a162751b90ce684dc55eb3e660e30f7554de3
gpu: ipu-di: Add ipu_di_adjust_videomode()

On some monitors, high resolution modes are not working, exhibiting
pixel column truncation problems (for example, 1280x1024 displays as
1280x1022).

The function ipu_di_adjust_videomode() aims to fix these issues by
adjusting a passed videomode to IPU restrictions. The function can
be called from the drm_crtc_helper_funcs->mode_fixup() methods.

Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Deepak Das <deepak_das@mentor.com>
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-di.c
include/video/imx-ipu-v3.h