summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWayne Zou <b36644@freescale.com>2013-02-20 13:46:01 +0800
committerNitin Garg <nitin.garg@freescale.com>2014-06-03 22:59:28 -0500
commitd8870712cda71b6da5fe668c52b6d6e91f5b988e (patch)
treee9c51eed9dbecfce611576ca711608891d2cd85f /include
parent2b866b45c53ad92a918c14d867fb88adb321ebc4 (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.h11
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)