drm/i915: garbage-collect vlv refclk function
Subsystems (2)
PATCH 1/1 drm/i915: garbage-collect vlv refclk function
Simply inline the 100MHz default we're using. Having gunk around that has leftover LVDS support on a platform that just doesn't have this isn't of any use.
Signed-off-by Daniel Vetter <[email protected]>
--- drivers/gpu/drm/i915/intel_display.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-)
drivers/gpu/drm/i915/intel_display.c +1 -23
@@ -4288,28 +4288,6 @@ static inline bool intel_panel_use_ssc(struct drm_i915_private *dev_priv) && !(dev_priv->quirks &QUIRK_LVDS_SSC_DISABLE ); } -static int vlv_get_refclk (struct drm_crtc *crtc) -{ -struct drm_device *dev = crtc->dev; -struct drm_i915_private *dev_priv = dev->dev_private; -int refclk =27000 ;/* for DP & HDMI */ - -return 100000 ;/* only one validated so far */ - -if (intel_pipe_has_type (crtc,INTEL_OUTPUT_ANALOG )) { - refclk =96000 ; - }else if (intel_pipe_has_type (crtc,INTEL_OUTPUT_LVDS )) { -if (intel_panel_use_ssc (dev_priv)) - refclk =100000 ; -else - refclk =96000 ; - }else if (intel_pipe_has_type (crtc,INTEL_OUTPUT_EDP )) { - refclk =100000 ; - } - -return refclk; -} -static int i9xx_get_refclk (struct drm_crtc *crtc,int num_connectors) {struct drm_device *dev = crtc->dev;
@@ -4317,7 +4295,7 @@ static int i9xx_get_refclk(struct drm_crtc *crtc, int num_connectors)int refclk;if (IS_VALLEYVIEW (dev)) { - refclk =vlv_get_refclk (crtc); + refclk =100000 ; }else if (intel_pipe_has_type (crtc,INTEL_OUTPUT_LVDS ) &&intel_panel_use_ssc (dev_priv) && num_connectors <2 ) { refclk = dev_priv->vbt.lvds_ssc_freq *1000 ;
Signature · 1 line
1.8.4.rc3
Quoted 5 lines · Daniel Vetter
Simply inline the 100MHz default we're using. Having gunk around that has leftover LVDS support on a platform that just doesn't have this isn't of any use.
Signed-off-by Daniel Vetter <[email protected]>
Reviewed-by Damien Lespiau <[email protected]>
Signature · 1 line
Damien
Quoted 53 lines
--- drivers/gpu/drm/i915/intel_display.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-)drivers/gpu/drm/i915/intel_display.c +1
-23@@ -4288,28 +4288,6 @@ static inline bool intel_panel_use_ssc(struct drm_i915_private *dev_priv) && !(dev_priv->quirks &QUIRK_LVDS_SSC_DISABLE ); } -static int vlv_get_refclk (struct drm_crtc *crtc) -{ -struct drm_device *dev = crtc->dev; -struct drm_i915_private *dev_priv = dev->dev_private; -int refclk =27000 ;/* for DP & HDMI */ - -return 100000 ;/* only one validated so far */ - -if (intel_pipe_has_type (crtc,INTEL_OUTPUT_ANALOG )) { - refclk =96000 ; - }else if (intel_pipe_has_type (crtc,INTEL_OUTPUT_LVDS )) { -if (intel_panel_use_ssc (dev_priv)) - refclk =100000 ; -else - refclk =96000 ; - }else if (intel_pipe_has_type (crtc,INTEL_OUTPUT_EDP )) { - refclk =100000 ; - } - -return refclk; -} -static int i9xx_get_refclk (struct drm_crtc *crtc,int num_connectors) {struct drm_device *dev = crtc->dev;@@ -4317,7 +4295,7 @@ static int i9xx_get_refclk(struct drm_crtc *crtc, int num_connectors)int refclk;if (IS_VALLEYVIEW (dev)) { - refclk =vlv_get_refclk (crtc); + refclk =100000 ; }else if (intel_pipe_has_type (crtc,INTEL_OUTPUT_LVDS ) &&intel_panel_use_ssc (dev_priv) && num_connectors <2 ) { refclk = dev_priv->vbt.lvds_ssc_freq *1000 ;Signature · 6 lines
1.8.4.rc3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 8 lines · Damien Lespiau
Quoted 5 lines · Daniel Vetter
Simply inline the 100MHz default we're using. Having gunk around that has leftover LVDS support on a platform that just doesn't have this isn't of any use.
Signed-off-by Daniel Vetter <[email protected]>Reviewed-by Damien Lespiau <[email protected]>
Queued for -next, thanks for the review.
-Daniel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch