Skip to contentSkip to conversation

OMAP: DSS2: Add new color formats

PATCH New Amber Jain 1 participant 1 message May 5, 2011

Subsystems (3)
lore
Share & tools
lore

Amber Jain

author
#0 lore raw

PATCH 1/1 OMAP: DSS2: Add new color formats

Added new color formats supported by OMAP4.

---
 arch/arm/plat-omap/include/plat/display.h |    5 ++
 drivers/video/omap2/dss/dispc.c           |  107 ++++++++++++++++++++---------
 drivers/video/omap2/dss/dss_features.c    |   43 +++++++++++-
 drivers/video/omap2/dss/manager.c         |    7 ++
 4 files changed, 129 insertions(+), 33 deletions(-)
arch/arm/plat-omap/include/plat/display.h +5 -0
index 43b887b..1b8d83a 100644
@@ -88,6 +88,11 @@ enum omap_color_mode {
 	OMAP_DSS_COLOR_ARGB32	= 1 << 11, /* ARGB32 */
 	OMAP_DSS_COLOR_RGBA32	= 1 << 12, /* RGBA32 */
 	OMAP_DSS_COLOR_RGBX32	= 1 << 13, /* RGBx32 */
+	OMAP_DSS_COLOR_NV12		= 1 << 14, /* NV12 format: YUV 4:2:0 */
+	OMAP_DSS_COLOR_RGBA16		= 1 << 15, /* RGBA16 - 4444 */
+	OMAP_DSS_COLOR_RGBX16		= 1 << 16, /* RGBx16 - 4444 */
+	OMAP_DSS_COLOR_ARGB16_1555	= 1 << 17, /* ARGB16 - 1555 */
+	OMAP_DSS_COLOR_XRGB16_1555	= 1 << 18, /* xRGB16 - 1555 */
 };
 
 enum omap_lcd_display_type {
drivers/video/omap2/dss/dispc.c +75 -32

125 lines not on this page · raw message

drivers/video/omap2/dss/dss_features.c +42 -1

55 lines not on this page · raw message

drivers/video/omap2/dss/manager.c +7 -0
index 08152a7..e095d00 100644
@@ -775,10 +775,17 @@ static int configure_overlay(enum omap_plane plane)
 		}
 
 		switch (c->color_mode) {
+		case OMAP_DSS_COLOR_NV12:
+			bpp = 8;
+			break;
 		case OMAP_DSS_COLOR_RGB16:
 		case OMAP_DSS_COLOR_ARGB16:
 		case OMAP_DSS_COLOR_YUV2:
 		case OMAP_DSS_COLOR_UYVY:
+		case OMAP_DSS_COLOR_RGBA16:
+		case OMAP_DSS_COLOR_RGBX16:
+		case OMAP_DSS_COLOR_ARGB16_1555:
+		case OMAP_DSS_COLOR_XRGB16_1555:
 			bpp = 16;
 			break;
 
Signature · 1 line
1.7.1