Skip to content
This repository was archived by the owner on Oct 5, 2018. It is now read-only.

Commit 72b15e5

Browse files
author
Xinliang Liu
committed
gpu/drm: hisilicon: Correct 720P's pixel clock
Signed-off-by: Xinliang Liu <[email protected]>
1 parent 7bfade6 commit 72b15e5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

drivers/gpu/drm/hisilicon/hisi_drm_dsi.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ static void hisi_drm_encoder_mode_set(struct drm_encoder *encoder,
765765
vm->hsync_len = mode->hsync_end - mode->hsync_start;
766766

767767
/* laneBitRate >= pixelClk*24/lanes */
768-
dsi->dphy_freq = vm->pixelclock*24/dsi->lanes + 20;
768+
dsi->dphy_freq = vm->pixelclock*24/dsi->lanes;
769769

770770
vm->flags = 0;
771771
if (mode->flags & DRM_MODE_FLAG_PHSYNC)
@@ -853,7 +853,7 @@ static int hisi_get_default_modes(struct drm_connector *connector)
853853
}
854854

855855
mode->vrefresh = 60;
856-
mode->clock = 75000;
856+
mode->clock = 74175;
857857
mode->hdisplay = 1280;
858858
mode->hsync_start = 1500;
859859
mode->hsync_end = 1540;
@@ -882,12 +882,11 @@ static int hisi_dsi_get_modes(struct drm_connector *connector)
882882
if (sfuncs && sfuncs->get_modes)
883883
count = sfuncs->get_modes(encoder, connector);
884884

885-
DRM_DEBUG_DRIVER("exit success. count=%d\n", count);
886885
#if USE_DEFAULT_720P_MODE
887-
return hisi_get_default_modes(connector);
888-
#else
889-
return count;
886+
count += hisi_get_default_modes(connector);
890887
#endif
888+
DRM_DEBUG_DRIVER("exit success. count=%d\n", count);
889+
return count;
891890
}
892891

893892
static struct drm_encoder *

drivers/gpu/drm/i2c/adv7533.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static void adv7533_set_config_csc(struct adv7533 *adv7533,
186186
if (adv7533->edid)
187187
config.hdmi_mode = drm_detect_hdmi_monitor(adv7533->edid);
188188
else
189-
config.hdmi_mode = true; /* HDMI as default */
189+
config.hdmi_mode = false;
190190

191191
hdmi_avi_infoframe_init(&config.avi_infoframe);
192192

0 commit comments

Comments
 (0)