drm/bridge: analogix_dp: hardcode input video format to RGB10 for Rockchip platform
authorYakir Yang <ykk@rock-chips.com>
Wed, 6 Apr 2016 11:15:12 +0000 (19:15 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Thu, 7 Apr 2016 03:21:36 +0000 (11:21 +0800)
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 <ykk@rock-chips.com>
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c

index 7699597070a13d09909e64780faba937a2b13b8c..dc438c32082c6e672c85b5732b7d06abc9bad474 100644 (file)
@@ -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.