aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Redpath <chris.redpath@arm.com>2012-06-29 16:07:08 +0100
committerJon Medhurst <tixy@linaro.org>2013-04-29 09:42:55 +0100
commit32c0c6fe0da448ef4e44fb499f4ed5e9a3b11473 (patch)
tree1e1ccebed04b1714f42650ff4040aee17ea8b3f4 /include
parentc2fbe1015b8de2fa3b16bcde578e658e416cbfc8 (diff)
ARM HDLCD: Add useful functions to HDLCD driver for system integration
During TC2 integration a bad config option resulted in HDLCD memory reads not being serviced often enough. This lead to unsightly screen blanking. These options allow the developer to count the number of underruns and to control the color used by HDLCD when an underrun prevents accessing pixel data. The combination of these two options allow easy diagnosis of HDLCD underrun conditions. Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/arm-hdlcd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/arm-hdlcd.h b/include/linux/arm-hdlcd.h
index 085fbec1fec..f3f4887ac4f 100644
--- a/include/linux/arm-hdlcd.h
+++ b/include/linux/arm-hdlcd.h
@@ -89,6 +89,20 @@
#define NR_PALETTE 256
+/* OEMs using HDLCD may wish to enable these settings if
+ * display disruption is apparent and you suspect HDLCD
+ * access to RAM may be starved.
+ */
+/* Turn HDLCD default color red instead of black so
+ * that it's easy to see pixel clock data underruns
+ * (compared to other visual disruption)
+ */
+//#define HDLCD_RED_DEFAULT_COLOUR
+/* Add a counter in the IRQ handler to count buffer underruns
+ * and /proc/hdlcd_underrun to read the counter
+ */
+//#define HDLCD_COUNT_BUFFERUNDERRUNS
+
struct hdlcd_device {
struct fb_info fb;
struct device *dev;