summaryrefslogtreecommitdiff
path: root/include/video
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2019-01-03 12:57:05 +0800
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:58:11 +0800
commit75e35bcb993d5c59ac66142e598aa4426165946c (patch)
tree6f89665bb8a83959f189e68af348c62f4df0b0d8 /include/video
parent491b250b63c8e118e499462a247d20a1166566ee (diff)
gpu: imx: dpu: framegen: Add helpers to get/clear sec chan status
This patch adds two helpers to get and clear FrameGen secondary channel status respectively. Via the two helpers, users may know if there is empty FIFO read request on this channel or not after getting the status. And, if yes, users may choose to clear the status. According to the IP spec, the empty FIFO read request indicates that data stream from a Fetch unit(e.g., AXI bandwidth not sufficient) fell down. Assuming the display driver sets things up properly, the falling down is very likely caused by the insufficient AXI bandwidth, that is, display underrun. Signed-off-by: Liu Ying <victor.liu@nxp.com>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/dpu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/video/dpu.h b/include/video/dpu.h
index 2aae2168c1ae..174985cde429 100644
--- a/include/video/dpu.h
+++ b/include/video/dpu.h
@@ -499,6 +499,8 @@ void framegen_wait_done(struct dpu_framegen *fg, struct drm_display_mode *m);
void framegen_read_timestamp(struct dpu_framegen *fg,
u32 *frame_index, u32 *line_index);
void framegen_wait_for_frame_counter_moving(struct dpu_framegen *fg);
+bool framegen_secondary_requests_to_read_empty_fifo(struct dpu_framegen *fg);
+void framegen_secondary_clear_channel_status(struct dpu_framegen *fg);
bool framegen_secondary_is_syncup(struct dpu_framegen *fg);
void framegen_wait_for_secondary_syncup(struct dpu_framegen *fg);
void framegen_enable_clock(struct dpu_framegen *fg);