[U-Boot] [PATCH 1/1] video: cfb_console: flush cache in display_rle8_bitmap

Sébastien Szymanski sebastien.szymanski at armadeus.com
Mon Sep 10 07:58:58 UTC 2018


Otherwise BMP RLE8 images are not properly displayed.

Signed-off-by: Sébastien Szymanski <sebastien.szymanski at armadeus.com>
---
 drivers/video/cfb_console.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c
index 40110668a6..636c3e8c18 100644
--- a/drivers/video/cfb_console.c
+++ b/drivers/video/cfb_console.c
@@ -1297,6 +1297,10 @@ next_run:
 			break;
 		}
 	}
+
+	if (cfb_do_flush_cache)
+		flush_cache(VIDEO_FB_ADRS, VIDEO_SIZE);
+
 	return 0;
 error:
 	printf("Error: Too much encoded pixel data, validate your bitmap\n");
-- 
2.16.4



More information about the U-Boot mailing list