From 144e62cef352d9670f09de3ac1da53ca6182835c Mon Sep 17 00:00:00 2001 From: Yakir Yang Date: Wed, 6 Apr 2016 19:15:12 +0800 Subject: [PATCH] drm/bridge: analogix_dp: hardcode input video format to RGB10 for Rockchip platform Rockchip LCD controller could only output the RGB101010 video format, so just hardcode the eDP input video format to that. Change-Id: I39673a35b439656dff7e3358b65ec835c92c4120 Signed-off-by: Yakir Yang --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 7699597070a1..dc438c32082c 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1136,6 +1136,11 @@ static void analogix_dp_bridge_mode_set(struct drm_bridge *bridge, else video->color_space = COLOR_RGB; + if (dp->plat_data->dev_type == RK3288_DP) { + video->color_space = COLOR_RGB; + video->color_depth = COLOR_10; + } + /* * NOTE: those property parsing code is used for providing backward * compatibility for samsung platform. -- 2.34.1