MLK-19152-1 gpu: imx: lcdif: realize fb horizontal crop via Pigeon Mode
authorFancy Fang <chen.fang@nxp.com>
Tue, 7 Aug 2018 10:04:54 +0000 (18:04 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit7cc4bdfd83902ab14697d32c491450590cf7afc1
tree27b3adc68751911cfc1b7b02c68b8a03e805580e
parentfc016194eb3570dd65125f6a5fb4c2246fe3f1e5
MLK-19152-1 gpu: imx: lcdif: realize fb horizontal crop via Pigeon Mode

According to the LCDIF specification, the Legacy Mode does not
support cropping function in the horizontal direction, so add
Pigeon Mode which can support this kind of function. And when
enable this mode, the legacy horizontal timings configuration
should use stride value but not the active width, and related
pigeon configuration should use the active width but not the
stride value.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit e6da9542693dd585972897f62748a101f5726a74)
(cherry picked from commit 55a2e07dd598d996cb3fbb35e3a61058962f20a5)
drivers/gpu/imx/lcdif/lcdif-common.c
drivers/gpu/imx/lcdif/lcdif-regs.h
include/video/imx-lcdif.h