From 3baeefbcaee16023050ea6b3f1ff4b745cfa21f4 Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Fri, 17 Aug 2018 10:59:17 +0800 Subject: gpu: imx: dpu: framegen: Add framegen_is_master/slave() helper support This patch adds framegen_is_master/slave() helpers support so that callers may know if a framegen is a master or slave framegen. Signed-off-by: Liu Ying --- include/video/dpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/video') diff --git a/include/video/dpu.h b/include/video/dpu.h index 3e02c0f92d32..47ed3a3de0d2 100644 --- a/include/video/dpu.h +++ b/include/video/dpu.h @@ -507,6 +507,8 @@ 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); void framegen_disable_clock(struct dpu_framegen *fg); +bool framegen_is_master(struct dpu_framegen *fg); +bool framegen_is_slave(struct dpu_framegen *fg); struct dpu_framegen *dpu_fg_get(struct dpu_soc *dpu, int id); void dpu_fg_put(struct dpu_framegen *fg); struct dpu_framegen *dpu_aux_fg_peek(struct dpu_framegen *fg); -- cgit v1.2.3