aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsl-diu-fb.h
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2012-10-16 17:33:44 -0500
committerTimur Tabi <timur@freescale.com>2012-11-26 13:41:19 -0600
commite95c17e9caff4b106cc95b761f3e07964a5a0d9f (patch)
tree64ab7ac3f0382de82b32e8a17176b1c677355f99 /include/linux/fsl-diu-fb.h
parentdrivers/video: fsl-diu-fb: simplify platforms that have only one port (diff)
downloadlinux-dev-e95c17e9caff4b106cc95b761f3e07964a5a0d9f.tar.xz
linux-dev-e95c17e9caff4b106cc95b761f3e07964a5a0d9f.zip
drivers/video: fsl-diu-fb: add support for set_gamma ioctls
The MPC5121 BSP comes with a gamma_set utility that initializes the gamma table via an ioctl. Unfortunately, the ioctl number that utility uses is defined improperly, but we can still support it. Signed-off-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'include/linux/fsl-diu-fb.h')
-rw-r--r--include/linux/fsl-diu-fb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/fsl-diu-fb.h b/include/linux/fsl-diu-fb.h
index 11c16a1fb9e3..a1e8277120c7 100644
--- a/include/linux/fsl-diu-fb.h
+++ b/include/linux/fsl-diu-fb.h
@@ -47,6 +47,15 @@ struct aoi_display_offset {
#define MFB_GET_PIXFMT _IOR('M', 8, __u32)
/*
+ * The MPC5121 BSP comes with a gamma_set utility that initializes the
+ * gamma table. Unfortunately, it uses bad values for the IOCTL commands,
+ * but there's nothing we can do about it now. These ioctls are only
+ * supported on the MPC5121.
+ */
+#define MFB_SET_GAMMA _IOW('M', 1, __u8)
+#define MFB_GET_GAMMA _IOR('M', 1, __u8)
+
+/*
* The original definitions of MFB_SET_PIXFMT and MFB_GET_PIXFMT used the
* wrong value for 'size' field of the ioctl. The current macros above use the
* right size, but we still need to provide backwards compatibility, at least