From: ChiHun Won Date: Fri, 13 Jul 2018 04:31:43 +0000 (+0900) Subject: fbdev: dpu20: added decon bgr565 pixcel format X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=151ba986676187927beb59c3ef6752bfa64b4482;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git fbdev: dpu20: added decon bgr565 pixcel format Change-Id: Idd9d27d16dd10bc22f714086485dd94bc13d887d Signed-off-by: ChiHun Won --- diff --git a/drivers/video/fbdev/exynos/dpu20/helper.c b/drivers/video/fbdev/exynos/dpu20/helper.c index ecbfe76bc578..b087c6e6bb82 100644 --- a/drivers/video/fbdev/exynos/dpu20/helper.c +++ b/drivers/video/fbdev/exynos/dpu20/helper.c @@ -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;