]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/video/video-uclass.c
video: Add a function to control cache flushing
[people/ms/u-boot.git] / drivers / video / video-uclass.c
index 63d0d9d7d3f5586f41b06f288db51e58295c8d29..24d537e6c44ff37236e1b8b41049417c8f13147f 100644 (file)
  */
 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);