fbdev: dpu20: added decon bgr565 pixcel format
authorChiHun Won <chihun.won@samsung.com>
Fri, 13 Jul 2018 04:31:43 +0000 (13:31 +0900)
committerjungi.lee <jungilsi.lee@samsung.com>
Tue, 17 Jul 2018 10:50:45 +0000 (19:50 +0900)
Change-Id: Idd9d27d16dd10bc22f714086485dd94bc13d887d
Signed-off-by: ChiHun Won <chihun.won@samsung.com>
drivers/video/fbdev/exynos/dpu20/helper.c

index ecbfe76bc578e000b8ab8138270189758fde5e17..b087c6e6bb82b4c22d9ae7d37b52de0c4fef7c96 100644 (file)
@@ -149,6 +149,7 @@ u32 dpu_get_bpp(enum decon_pixel_format fmt)
 
        case DECON_PIXEL_FORMAT_RGBA_5551:
        case DECON_PIXEL_FORMAT_RGB_565:
+       case DECON_PIXEL_FORMAT_BGR_565:
                return 16;
 
        case DECON_PIXEL_FORMAT_NV12N_10B:
@@ -198,6 +199,7 @@ int dpu_get_meta_plane_cnt(enum decon_pixel_format format)
        case DECON_PIXEL_FORMAT_BGRX_8888:
        case DECON_PIXEL_FORMAT_RGBA_5551:
        case DECON_PIXEL_FORMAT_RGB_565:
+       case DECON_PIXEL_FORMAT_BGR_565:
        case DECON_PIXEL_FORMAT_NV12N:
        case DECON_PIXEL_FORMAT_NV16:
        case DECON_PIXEL_FORMAT_NV61:
@@ -249,6 +251,7 @@ int dpu_get_plane_cnt(enum decon_pixel_format format, bool is_hdr)
        case DECON_PIXEL_FORMAT_BGRX_8888:
        case DECON_PIXEL_FORMAT_RGBA_5551:
        case DECON_PIXEL_FORMAT_RGB_565:
+       case DECON_PIXEL_FORMAT_BGR_565:
        case DECON_PIXEL_FORMAT_NV12N:
                return 1;