@@ -924,17 +924,6 @@ static int to_vop_csc_mode(int csc_mode)
924
924
}
925
925
}
926
926
927
- static void vop_disable_all_outputs (struct vop * vop )
928
- {
929
- VOP_CTRL_SET (vop , rgb_en , 0 );
930
- VOP_CTRL_SET (vop , lvds_en , 0 );
931
- VOP_CTRL_SET (vop , edp_en , 0 );
932
- VOP_CTRL_SET (vop , hdmi_en , 0 );
933
- VOP_CTRL_SET (vop , mipi_en , 0 );
934
- VOP_CTRL_SET (vop , dp_en , 0 );
935
- VOP_CTRL_SET (vop , tve_dclk_en , 0 );
936
- }
937
-
938
927
static void vop_disable_all_planes (struct vop * vop )
939
928
{
940
929
bool active ;
@@ -1403,7 +1392,6 @@ static void vop_crtc_disable(struct drm_crtc *crtc)
1403
1392
SYS_STATUS_LCDC1 : SYS_STATUS_LCDC0 ;
1404
1393
1405
1394
vop_lock (vop );
1406
- vop_disable_all_outputs (vop );
1407
1395
VOP_CTRL_SET (vop , reg_done_frm , 1 );
1408
1396
VOP_CTRL_SET (vop , dsp_interlace , 0 );
1409
1397
drm_crtc_vblank_off (crtc );
@@ -2727,7 +2715,6 @@ static void vop_crtc_enable(struct drm_crtc *crtc)
2727
2715
hdisplay , vdisplay , interlaced ? "i" : "p" ,
2728
2716
adjusted_mode -> vrefresh , s -> output_type );
2729
2717
vop_initial (crtc );
2730
- vop_disable_all_outputs (vop );
2731
2718
vop_disable_allwin (vop );
2732
2719
VOP_CTRL_SET (vop , standby , 0 );
2733
2720
vop -> mode_update = vop_crtc_mode_update (crtc );
@@ -2755,13 +2742,10 @@ static void vop_crtc_enable(struct drm_crtc *crtc)
2755
2742
2756
2743
switch (s -> output_type ) {
2757
2744
case DRM_MODE_CONNECTOR_DPI :
2745
+ case DRM_MODE_CONNECTOR_LVDS :
2758
2746
VOP_CTRL_SET (vop , rgb_en , 1 );
2759
2747
VOP_CTRL_SET (vop , rgb_pin_pol , val );
2760
2748
VOP_CTRL_SET (vop , rgb_dclk_pol , dclk_inv );
2761
-
2762
- VOP_GRF_SET (vop , grf_dclk_inv , !dclk_inv );
2763
- break ;
2764
- case DRM_MODE_CONNECTOR_LVDS :
2765
2749
VOP_CTRL_SET (vop , lvds_en , 1 );
2766
2750
VOP_CTRL_SET (vop , lvds_pin_pol , val );
2767
2751
VOP_CTRL_SET (vop , lvds_dclk_pol , dclk_inv );
0 commit comments