diff options
author | Danny Nold <dannynold@freescale.com> | 2010-10-21 10:03:43 -0500 |
---|---|---|
committer | Danny Nold <dannynold@freescale.com> | 2010-11-08 09:02:58 -0600 |
commit | 4d0e58e894a9a7d6d0e5c574fe0bb4736c7e9a6a (patch) | |
tree | 646e66a394379560f92d03936c456fb19077ca5c /include/linux | |
parent | 25da4a6f5fd3566ae1b0bd5bc1a7bf645e169e6b (diff) |
ENGR00132537-1 - EPDC fb/PxP: Support conversion from grayscale to monochrome
- User can specify a flag (EPDC_FLAG_FORCE_MONOCHROME) to have 8-bit grayscale
converted to monochrome (black or white) via processing in the PxP
(using the LUT).
- Added logic to check against the full videomode when identifying the
desired FB mode. This allows support for multiple modes with the same
dimensions.
Signed-off-by: Danny Nold <dannynold@freescale.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mxcfb.h | 6 | ||||
-rw-r--r-- | include/linux/pxp_dma.h | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/mxcfb.h b/include/linux/mxcfb.h index 0f92ad04942c..babf3f293680 100644 --- a/include/linux/mxcfb.h +++ b/include/linux/mxcfb.h @@ -78,6 +78,10 @@ struct mxcfb_rect { #define TEMP_USE_AMBIENT 0x1000 +#define EPDC_FLAG_ENABLE_INVERSION 0x01 +#define EPDC_FLAG_FORCE_MONOCHROME 0x02 +#define EPDC_FLAG_USE_ALT_BUFFER 0x100 + #define FB_POWERDOWN_DISABLE -1 struct mxcfb_alt_buffer_data { @@ -93,7 +97,7 @@ struct mxcfb_update_data { __u32 update_mode; __u32 update_marker; int temp; - int use_alt_buffer; + uint flags; struct mxcfb_alt_buffer_data alt_buffer_data; }; diff --git a/include/linux/pxp_dma.h b/include/linux/pxp_dma.h index adca97da54d9..91553970f22a 100644 --- a/include/linux/pxp_dma.h +++ b/include/linux/pxp_dma.h @@ -75,8 +75,9 @@ typedef unsigned char bool; #define PXP_PIX_FMT_YUV422P fourcc('4', '2', '2', 'P') /*!< 16 YUV 4:2:2 */ /*! @} */ -#define PXP_LUT_NONE 0x0 -#define PXP_LUT_INVERT 0x1 +#define PXP_LUT_NONE 0x0 +#define PXP_LUT_INVERT 0x1 +#define PXP_LUT_BLACK_WHITE 0x2 #define NR_PXP_VIRT_CHANNEL 16 |