diff options
author | Danny Nold <dannynold@freescale.com> | 2011-08-11 20:07:59 -0500 |
---|---|---|
committer | Danny Nold <dannynold@freescale.com> | 2011-09-14 15:35:58 -0500 |
commit | 363f9d93ba31b95d9ea3aa1d6db85f65105ae471 (patch) | |
tree | d6baf175fd8697e95e3fdcc06223ca0d4c0040a7 /include | |
parent | 3e208944aeebf4b4d5529901f84bbfd88f75b1f7 (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.h | 1 | ||||
-rw-r--r-- | include/linux/pxp_dma.h | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mxcfb.h b/include/linux/mxcfb.h index d56ad35f1ddc..bf27e39e6ad3 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 91553970f22a..867afbe084e7 100644 --- a/include/linux/pxp_dma.h +++ b/include/linux/pxp_dma.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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 { |