mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
drm/rockchip: hdmi: disable RK3368 2160P RGB444/YCbCr444/YCbCr422 mode
Change-Id: I573db9cd41031f45cac359fc9314491ebd1ba8fc Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
parent
ae6fbdeed9
commit
821bf1091c
|
|
@ -353,6 +353,7 @@ dw_hdmi_rockchip_mode_valid(struct drm_connector *connector,
|
|||
struct drm_device *dev = connector->dev;
|
||||
struct rockchip_drm_private *priv = dev->dev_private;
|
||||
struct drm_crtc *crtc;
|
||||
struct rockchip_hdmi *hdmi;
|
||||
|
||||
/*
|
||||
* Pixel clocks we support are always < 2GHz and so fit in an
|
||||
|
|
@ -385,6 +386,11 @@ dw_hdmi_rockchip_mode_valid(struct drm_connector *connector,
|
|||
|
||||
if (!encoder || !encoder->possible_crtcs)
|
||||
return MODE_BAD;
|
||||
|
||||
hdmi = to_rockchip_hdmi(encoder);
|
||||
if (hdmi->max_tmdsclk <= 340000 && mode->clock > 340000 &&
|
||||
!drm_mode_is_420(&connector->display_info, mode))
|
||||
return MODE_BAD;
|
||||
/*
|
||||
* ensure all drm display mode can work, if someone want support more
|
||||
* resolutions, please limit the possible_crtc, only connect to
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user