MLK-19152-3 drm/imx: lcdif: add horizontal crop support to plane update
authorFancy Fang <chen.fang@nxp.com>
Tue, 7 Aug 2018 10:37:06 +0000 (18:37 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit67e31f9bef9a86c33ae8df1cd29ef5c6f368b197
treebe28ed08efa5e337d8e978e293bf33166a3e7f53
parent8c1b1eff0e457eaa2f2ec181aa71be23b8da50bf
MLK-19152-3 drm/imx: lcdif: add horizontal crop support to plane update

Add horizontal cropping support when atomic plane update is
running, and if the attached CRTC needs modeset. And if the
width of visible portion of plane is equal to the fb surface
width, the Pigeon Mode will be disabled, so cropping will be
disabled.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 30672b2b18a07a2926979cc533cbb84ea4a642dd)
(cherry picked from commit 3bdf9efa9f1ebb995c79a60da4d579d21310670d)
drivers/gpu/drm/imx/lcdif/lcdif-plane.c