aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYakir Yang <ykk@rock-chips.com>2016-06-29 05:15:44 -0400
committerYakir Yang <ykk@rock-chips.com>2016-07-05 09:53:39 -0400
commitd698f0eb9d0ebfff26a5a739a21164700d5dd58e (patch)
tree71dbb27f22c0d72bdddbffdf3dcdc3cbadccc27d /drivers
parentdb8a9aed10489d37e44ce4e1412e41f1c99ea28f (diff)
drm/rockchip: analogix_dp: update the comments about why need to hardcode VOP output mode
The hardware IC designed that VOP must output the RGB10 video format to eDP contoller, and if eDP panel only support RGB8, then eDP contoller should cut down the video data, not via VOP contoller, that's why we need to hardcode the VOP output mode to RGA10 here. Signed-off-by: Yakir Yang <ykk@rock-chips.com> Acked-by: Mark Yao <mark.yao@rock-chips.com> Reviewed-by: Tomasz Figa <tomasz.figa@chromium.com> Reviewed-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/rockchip/analogix_dp-rockchip.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
index 0a0fb3a777ca..850edc4d99c8 100644
--- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
+++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
@@ -182,17 +182,11 @@ rockchip_dp_drm_encoder_atomic_check(struct drm_encoder *encoder,
182 int ret; 182 int ret;
183 183
184 /* 184 /*
185 * FIXME(Yakir): driver should configure the CRTC output video 185 * The hardware IC designed that VOP must output the RGB10 video
186 * mode with the display information which indicated the monitor 186 * format to eDP controller, and if eDP panel only support RGB8,
187 * support colorimetry. 187 * then eDP controller should cut down the video data, not via VOP
188 * 188 * controller, that's why we need to hardcode the VOP output mode
189 * But don't know why the CRTC driver seems could only output the 189 * to RGA10 here.
190 * RGBaaa rightly. For example, if connect the "innolux,n116bge"
191 * eDP screen, EDID would indicated that screen only accepted the
192 * 6bpc mode. But if I configure CRTC to RGB666 output, then eDP
193 * screen would show a blue picture (RGB888 show a green picture).
194 * But if I configure CTRC to RGBaaa, and eDP driver still keep
195 * RGB666 input video mode, then screen would works prefect.
196 */ 190 */
197 191
198 s->output_mode = ROCKCHIP_OUT_MODE_AAAA; 192 s->output_mode = ROCKCHIP_OUT_MODE_AAAA;