video: tegra: Add deep color support
Santosh Reddy Galma [Mon, 19 Oct 2015 11:08:14 +0000 (16:08 +0530)]
This change adds support for YUV422, YUV444 and RGB444 deep color
formats. It also fixes the associated masks and values.

Bug 1750555

Change-Id: Iea8551df9783a1f5c05679d971d62cb5d8ef3ba8
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Signed-off-by: Michael I. Gold <gold@nvidia.com>
Reviewed-on: http://git-master/r/1134544
(cherry picked from commit 8a923dc3bdcb2c94344374acfcd65f542793b3f9)
Reviewed-on: http://git-master/r/1152722
Reviewed-by: Vinayak Pane <vpane@nvidia.com>

include/uapi/linux/fb.h

index d4342a2..3914cba 100644 (file)
 #define FB_CAP_DC_RGB_MASK             (FB_CAP_RGB_DC_30 | \
                                FB_CAP_RGB_DC_36 | FB_CAP_RGB_DC_48)
 
-#define FB_CAP_DC_MASK         (FB_CAP_DC_Y420_MASK | FB_CAP_DC_Y422_MASK | \
-                               FB_CAP_DC_Y444_MASK | FB_CAP_DC_RGB_MASK)
-
 #define FB_CAP_Y422            0x2000  /* YCbCr 4:2:2 support */
 #define FB_CAP_Y444            0x4000  /* YCbCr 4:4:4 support */
 #define FB_CAP_HDR             0x8000  /* Device supports HDR*/
 /* Device supports selectable YUV range */
 #define FB_CAP_YUV_QUANT_SELECTABLE            0x20000
 
+#define FB_CAP_DC_MASK         (FB_CAP_DC_Y420_MASK | FB_CAP_DC_Y422_MASK | \
+                               FB_CAP_DC_Y444_MASK | FB_CAP_DC_RGB_MASK | \
+                               FB_CAP_HDR | FB_CAP_RGB_QUANT_SELECTABLE | \
+                               FB_CAP_YUV_QUANT_SELECTABLE)
+
 #define FB_COL_XVYCC601                0x1
 #define FB_COL_XVYCC709                0x2
 #define FB_COL_SYCC601         0x4