aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/sunxi/cedrus/cedrus_hw.h
diff options
context:
space:
mode:
authorJernej Skrabec <jernej.skrabec@siol.net>2020-05-09 22:06:43 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-06-11 19:19:27 +0200
commitd5aecd289babf3adcf5a837b067a5efddb097d99 (patch)
treeb548dd464257354404a7966731e104591c466ee9 /drivers/staging/media/sunxi/cedrus/cedrus_hw.h
parenta8876c22eab9a871834f85de83e98bbf7e6e264d (diff)
media: cedrus: Implement runtime PM
This allows the VE clocks and PLL_VE to be disabled most of the time. A runtime PM reference is held while streaming. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/sunxi/cedrus/cedrus_hw.h')
-rw-r--r--drivers/staging/media/sunxi/cedrus/cedrus_hw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_hw.h b/drivers/staging/media/sunxi/cedrus/cedrus_hw.h
index 604ff932fbf5..45f641f0bfa2 100644
--- a/drivers/staging/media/sunxi/cedrus/cedrus_hw.h
+++ b/drivers/staging/media/sunxi/cedrus/cedrus_hw.h
@@ -22,6 +22,9 @@ void cedrus_engine_disable(struct cedrus_dev *dev);
void cedrus_dst_format_set(struct cedrus_dev *dev,
struct v4l2_pix_format *fmt);
+int cedrus_hw_suspend(struct device *device);
+int cedrus_hw_resume(struct device *device);
+
int cedrus_hw_probe(struct cedrus_dev *dev);
void cedrus_hw_remove(struct cedrus_dev *dev);

Privacy Policy