[PATCH 4/6] imx-drm: ipuv3-crtc: Implement mode_fixup

2014-12-15 Thread slongerb...@gmail.com
From: Steve Longerbeam Ask the IPU display interface, via ipu_di_adjust_videomode(), to adjust a video mode to meet any DI restrictions. The function takes a subsystem independent videomode, so the drm_display_mode must be converted to videomode first, and then the adjusted mode converted back to

[PATCH 0/6] imx-drm: ipuv3-crtc: Implement mode_fixup

2014-12-15 Thread slongerb...@gmail.com
From: Steve Longerbeam This patchset implements ->mode_fixup() in the imx ipuv3-crtc driver, using a new support function ipu_di_adjust_videomode(). This new function needs to be subsystem independent, so it accepts a video mode as a 'struct videomode'. Hence ipu-crtc ->mode_fixup() needs another

[PATCH 1/6] gpu: ipu-di: Add ipu_di_adjust_videomode()

2014-12-15 Thread slongerb...@gmail.com
From: Jiada Wang 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

[PATCH 2/6] gpu: ipu-di: remove some non-functional code

2014-12-15 Thread slongerb...@gmail.com
From: Steve Longerbeam h_total and v_total were calculated in ipu_di_init_sync_panel() but never actually used. Remove. Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-di.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/ipu-v3/ipu-di.c b/drivers/gpu/ipu-v3/i

[PATCH 3/6] drm_modes: add videomode_from_drm_display_mode

2014-12-15 Thread slongerb...@gmail.com
From: Steve Longerbeam Add conversion from drm_display_mode to videomode. Signed-off-by: Steve Longerbeam --- drivers/gpu/drm/drm_modes.c | 40 include/drm/drm_modes.h |2 ++ 2 files changed, 42 insertions(+) diff --git a/drivers/gpu/drm/drm_

[PATCH 5/6] imx-drm: encoder mode_set must use adjusted mode

2014-12-15 Thread slongerb...@gmail.com
From: Steve Longerbeam The encoder ->mode_set() methods need to use the hw adjusted mode, not the original mode. Signed-off-by: Steve Longerbeam --- drivers/gpu/drm/imx/imx-hdmi.c |4 ++-- drivers/gpu/drm/imx/imx-ldb.c |4 ++-- drivers/gpu/drm/imx/imx-tve.c |

[PATCH 6/6] gpu: ipu-v3: Use videomode in struct ipu_di_signal_cfg

2014-12-15 Thread slongerb...@gmail.com
From: Steve Longerbeam This patch changes struct ipu_di_signal_cfg to use struct videomode to define video timings and flags. Signed-off-by: Steve Longerbeam --- drivers/gpu/drm/imx/ipuv3-crtc.c | 27 +++- drivers/gpu/ipu-v3/ipu-di.c | 89 --