summaryrefslogtreecommitdiff
path: root/include/video.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-21 19:44:52 -0700
committerSimon Glass <sjg@chromium.org>2016-01-21 20:42:36 -0700
commit68dcdc99c51c0f0e4678b3b2b66249f3c6715d34 (patch)
tree67e4a3d6aef971d3a4e4041827d5f4d0d5c88d05 /include/video.h
parentf1a1247d8946ab2bd7efdd8c5197495768ef6269 (diff)
downloadu-boot-imx-68dcdc99c51c0f0e4678b3b2b66249f3c6715d34.zip
u-boot-imx-68dcdc99c51c0f0e4678b3b2b66249f3c6715d34.tar.gz
u-boot-imx-68dcdc99c51c0f0e4678b3b2b66249f3c6715d34.tar.bz2
video: Add a function to control cache flushing
Allow the cache-flushing function of a video device to be controlled. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/video.h')
-rw-r--r--include/video.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/video.h b/include/video.h
index b20f06f..fa643ca 100644
--- a/include/video.h
+++ b/include/video.h
@@ -158,6 +158,14 @@ int video_get_xsize(struct udevice *dev);
*/
int video_get_ysize(struct udevice *dev);
+/**
+ * Set whether we need to flush the dcache when changing the image. This
+ * defaults to off.
+ *
+ * @param flush non-zero to flush cache after update, 0 to skip
+ */
+void video_set_flush_dcache(struct udevice *dev, bool flush);
+
#endif /* CONFIG_DM_VIDEO */
#ifndef CONFIG_DM_VIDEO