MLK-21509-3 drm/imx: dpu: kms: Add auto control mode debugfs CRC support
authorLiu Ying <victor.liu@nxp.com>
Thu, 11 Apr 2019 11:45:11 +0000 (19:45 +0800)
committerLiu Ying <victor.liu@nxp.com>
Mon, 29 Apr 2019 07:35:53 +0000 (15:35 +0800)
commited23d80c9c27f5ae1239fb1c551267041bc9e6fc
tree683399fc0264917db5b9b9d1c2191b0c6dec4be6
parent58139767d3b70ccc2b194a85697e6a5f5c03e897
MLK-21509-3 drm/imx: dpu: kms: Add auto control mode debugfs CRC support

This patch adds auto control mode debugfs CRC support based on
DPU Signature units.  The evaluation window is the same to the
display region as indicated by drm_crtc_state->adjusted_mode.
The CRC data count is three when single DPU display stream is used,
while six when the pixel combiner(dual DPU display streams) is used.
Each data shows the CRC value for the 8 most significant bits of
red/green/blue channel of the entire evaluation window, which reflects
how DPU Signature unit reports CRC values.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/gpu/drm/imx/dpu/Makefile
drivers/gpu/drm/imx/dpu/dpu-crc.c [new file with mode: 0644]
drivers/gpu/drm/imx/dpu/dpu-crc.h [new file with mode: 0644]
drivers/gpu/drm/imx/dpu/dpu-crtc.c
drivers/gpu/drm/imx/dpu/dpu-crtc.h