drivers/video: fsl-diu-fb: add support for set_gamma ioctls
[firefly-linux-kernel-4.4.55.git] / include / linux / fsl-diu-fb.h
index 11c16a1fb9e3d8316ac4098ca450af8089dffdb3..a1e8277120c71b93b4b85db620dcee91925ef333 100644 (file)
@@ -46,6 +46,15 @@ struct aoi_display_offset {
 #define MFB_SET_PIXFMT         _IOW('M', 8, __u32)
 #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