summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDanny Nold <dannynold@freescale.com>2011-08-11 20:07:59 -0500
committerJason Liu <r64343@freescale.com>2012-07-20 13:16:15 +0800
commit44ddcb10254d5ed3978ccaea1f9801063e1fd54d (patch)
tree231c3d04e98068628cb04d1758b19757f8613fc5 /include
parent6d6fc0d96fcd7bae184533f496872cf84fab4c24 (diff)
ENGR00156420 - EPDC/PxP: Add support for color map
- Add support for 8-bit grayscale colormaps to be used during EPDC update processing - Add support in PxP for programming of colormaps Signed-off-by: Danny Nold <dannynold@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mxcfb.h1
-rw-r--r--include/linux/pxp_dma.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mxcfb.h b/include/linux/mxcfb.h
index 817bda95c353..3bc7c05310db 100644
--- a/include/linux/mxcfb.h
+++ b/include/linux/mxcfb.h
@@ -86,6 +86,7 @@ struct mxcfb_rect {
#define EPDC_FLAG_ENABLE_INVERSION 0x01
#define EPDC_FLAG_FORCE_MONOCHROME 0x02
+#define EPDC_FLAG_USE_CMAP 0x04
#define EPDC_FLAG_USE_ALT_BUFFER 0x100
#define FB_POWERDOWN_DISABLE -1
diff --git a/include/linux/pxp_dma.h b/include/linux/pxp_dma.h
index f78e56003753..867afbe084e7 100644
--- a/include/linux/pxp_dma.h
+++ b/include/linux/pxp_dma.h
@@ -78,6 +78,7 @@ typedef unsigned char bool;
#define PXP_LUT_NONE 0x0
#define PXP_LUT_INVERT 0x1
#define PXP_LUT_BLACK_WHITE 0x2
+#define PXP_LUT_USE_CMAP 0x4
#define NR_PXP_VIRT_CHANNEL 16
@@ -150,6 +151,8 @@ struct pxp_proc_data {
/* LUT transformation on Y data */
int lut_transform;
+ u8 *lut_map; /* 256 entries */
+ bool lut_map_updated; /* Map recently changed */
};
struct pxp_config_data {