From aa6fda9c4e3c3875d3c219ad79ffe688f44402bc Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Tue, 7 Jul 2020 15:38:52 +0800 Subject: MLK-21509-4 drm/imx: dpu: crc: Add user-configurable CRC region(ROI) support This patch adds user-configurable CRC region support. The users may choose a region of interest(ROI) as the CRC source (i.e., the CRC evaluation window) via the debugfs control node. The ROI cannot exceed the display region as indicated by drm_crtc_state->adjusted_mode. The users may write a string in the fashion of "roi:x1,y1,x2,y2" to the node to specify the ROI within the display region. The inclusive position at (x1, y1) indicates the upper left of the region, while the exclusive position at (x2, y2) indicates the lower right of the region. Signed-off-by: Liu Ying Reviewed-by: Robby Cai --- include/video/dpu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/video') diff --git a/include/video/dpu.h b/include/video/dpu.h index 07824f64298e..4115da97aab8 100644 --- a/include/video/dpu.h +++ b/include/video/dpu.h @@ -335,6 +335,7 @@ enum { enum dpu_crc_source { DPU_CRC_SRC_NONE, DPU_CRC_SRC_FRAMEGEN, + DPU_CRC_SRC_FRAMEGEN_ROI, }; struct dpu_fetchunit; -- cgit v1.2.3