diff options
author | Chris Redpath <chris.redpath@arm.com> | 2012-06-29 16:07:08 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2014-03-31 13:58:08 +0100 |
commit | 65f227ee366b54a7c13ca39b25b058c272a46f5b (patch) | |
tree | df527938efef65037f357cacd4159a7bbee9ad65 /include/linux | |
parent | a1cbc88b7203e2f554e516eb94401afd6d5aab1d (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/linux')
-rw-r--r-- | include/linux/arm-hdlcd.h | 14 |
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; |