From 476613c658ca4b3ae8c9d11d2471ea5d246248bf Mon Sep 17 00:00:00 2001 From: Zheng Yang Date: Mon, 19 Jun 2017 16:27:09 +0800 Subject: [PATCH] drm/rockchip: vop: support Synopsys HDMI TX Controller YUV420 bus_format MEDIA_BUS_FMT_UYYVYY8_0_5X24 and MEDIA_BUS_FMT_UYYVYY10_0_5X30 are bus_format of YUV420 data between Rockchip vop and Synopsys HDMI TX Controller. Change-Id: Id06e7cc7703e9b12e1a7f64cdbacc5e8a98b2b45 Signed-off-by: Zheng Yang --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index aa348530fec5..2ea768c3d1c6 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -390,6 +390,8 @@ static bool is_yuv_output(uint32_t bus_format) switch (bus_format) { case MEDIA_BUS_FMT_YUV8_1X24: case MEDIA_BUS_FMT_YUV10_1X30: + case MEDIA_BUS_FMT_UYYVYY8_0_5X24: + case MEDIA_BUS_FMT_UYYVYY10_0_5X30: return true; default: return false; @@ -1711,9 +1713,11 @@ static void vop_crtc_enable(struct drm_crtc *crtc) val = DITHER_DOWN_EN(1) | DITHER_DOWN_MODE(RGB888_TO_RGB666); break; case MEDIA_BUS_FMT_YUV8_1X24: + case MEDIA_BUS_FMT_UYYVYY8_0_5X24: val = DITHER_DOWN_EN(0) | PRE_DITHER_DOWN_EN(1); break; case MEDIA_BUS_FMT_YUV10_1X30: + case MEDIA_BUS_FMT_UYYVYY10_0_5X30: val = DITHER_DOWN_EN(0) | PRE_DITHER_DOWN_EN(0); break; case MEDIA_BUS_FMT_RGB888_1X24: -- 2.34.1