diff options
author | Wayne Zou <b36644@freescale.com> | 2013-02-20 13:46:01 +0800 |
---|---|---|
committer | Wayne Zou <b36644@freescale.com> | 2013-02-20 13:52:55 +0800 |
commit | 6e9d71d11be3f96eafbe4f7be82fe78ffe46462a (patch) | |
tree | 9fd8f74ab34fe884c5dddb34ea70683845138ba7 /include | |
parent | 58209e14383520d58b1bf74e0e9f98f7d05b80c6 (diff) |
ENGR00251015-1 FB/IPU: Add mxcfb ioctrl to update IPU DP CSC matrix
Add mxcfb ioctrl MXCFB_CSC_UPDATE to update IPU DP CSC matrix
for display adjustment.
This patch defines the ioctrl interface in header file.
Signed-off-by: Wayne Zou <b36644@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mxcfb.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/mxcfb.h b/include/linux/mxcfb.h index be391e0b7e05..e987efb7d6d0 100644 --- a/include/linux/mxcfb.h +++ b/include/linux/mxcfb.h @@ -1,5 +1,5 @@ /* - * Copyright 2004-2012 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2004-2013 Freescale Semiconductor, Inc. All Rights Reserved. */ /* @@ -132,6 +132,14 @@ struct mxcfb_waveform_modes { int mode_gc32; }; +/* + * Structure used to define a 5*3 matrix of parameters for + * setting IPU DP CSC module related to this framebuffer. + */ +struct mxcfb_csc_matrix { + int param[5][3]; +}; + #define MXCFB_WAIT_FOR_VSYNC _IOW('F', 0x20, u_int32_t) #define MXCFB_SET_GBL_ALPHA _IOW('F', 0x21, struct mxcfb_gbl_alpha) #define MXCFB_SET_CLR_KEY _IOW('F', 0x22, struct mxcfb_color_key) @@ -144,6 +152,7 @@ struct mxcfb_waveform_modes { #define MXCFB_GET_DIFMT _IOR('F', 0x2A, u_int32_t) #define MXCFB_GET_FB_BLANK _IOR('F', 0x2B, u_int32_t) #define MXCFB_SET_DIFMT _IOW('F', 0x2C, u_int32_t) +#define MXCFB_CSC_UPDATE _IOW('F', 0x2D, struct mxcfb_csc_matrix) /* IOCTLs for E-ink panel updates */ #define MXCFB_SET_WAVEFORM_MODES _IOW('F', 0x2B, struct mxcfb_waveform_modes) |