summaryrefslogtreecommitdiff
path: root/include/lcd.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-10-30 13:40:18 +0000
committerTom Warren <twarren@nvidia.com>2012-11-19 08:15:38 -0700
commit9a8efc4604b32221ea362ea41b38d714e4b4ab7a (patch)
tree6aa7d8e12f1c62a602188b69132405395de7b70b /include/lcd.h
parent676d319ef5f450ca7845555f75de496b96cd688e (diff)
downloadu-boot-imx-9a8efc4604b32221ea362ea41b38d714e4b4ab7a.zip
u-boot-imx-9a8efc4604b32221ea362ea41b38d714e4b4ab7a.tar.gz
u-boot-imx-9a8efc4604b32221ea362ea41b38d714e4b4ab7a.tar.bz2
lcd: Add support for flushing LCD fb from dcache after update
This provides an option for the LCD to flush the dcache after each update (puts, scroll or clear). Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/lcd.h')
-rw-r--r--include/lcd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/lcd.h b/include/lcd.h
index 6a600ee..8f84741 100644
--- a/include/lcd.h
+++ b/include/lcd.h
@@ -57,6 +57,14 @@ extern void lcd_initcolregs (void);
extern struct bmp_image *gunzip_bmp(unsigned long addr, unsigned long *lenp);
extern int bmp_display(ulong addr, int x, int y);
+/**
+ * Set whether we need to flush the dcache when changing the LCD image. This
+ * defaults to off.
+ *
+ * @param flush non-zero to flush cache after update, 0 to skip
+ */
+void lcd_set_flush_dcache(int flush);
+
#if defined CONFIG_MPC823
/*
* LCD controller stucture for MPC823 CPU