This repository was archived by the owner on Oct 5, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff 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
893892static struct drm_encoder *
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments