diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-21 19:44:52 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-21 20:42:36 -0700 |
commit | 68dcdc99c51c0f0e4678b3b2b66249f3c6715d34 (patch) | |
tree | 67e4a3d6aef971d3a4e4041827d5f4d0d5c88d05 /drivers/video/video-uclass.c | |
parent | f1a1247d8946ab2bd7efdd8c5197495768ef6269 (diff) |
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 'drivers/video/video-uclass.c')
-rw-r--r-- | drivers/video/video-uclass.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index 63d0d9d7d3..24d537e6c4 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -42,6 +42,13 @@ */ DECLARE_GLOBAL_DATA_PTR; +void video_set_flush_dcache(struct udevice *dev, bool flush) +{ + struct video_priv *priv = dev_get_uclass_priv(dev); + + priv->flush_dcache = flush; +} + static ulong alloc_fb(struct udevice *dev, ulong *addrp) { struct video_uc_platdata *plat = dev_get_uclass_platdata(dev); |