.. | .. |
---|
1091 | 1091 | static void dw_mipi_dsi_encoder_disable(struct drm_encoder *encoder) |
---|
1092 | 1092 | { |
---|
1093 | 1093 | struct dw_mipi_dsi *dsi = encoder_to_dsi(encoder); |
---|
| 1094 | + struct drm_crtc *crtc = encoder->crtc; |
---|
| 1095 | + struct rockchip_crtc_state *s = to_rockchip_crtc_state(crtc->state); |
---|
1094 | 1096 | |
---|
1095 | 1097 | if (dsi->panel) |
---|
1096 | 1098 | drm_panel_disable(dsi->panel); |
---|
.. | .. |
---|
1105 | 1107 | |
---|
1106 | 1108 | if (IS_ENABLED(CONFIG_CPU_RK3568) && dsi->pdata->soc_type == RK3568) |
---|
1107 | 1109 | vop2_standby(encoder->crtc, 0); |
---|
| 1110 | + |
---|
| 1111 | + if (dsi->slave) |
---|
| 1112 | + s->output_if &= ~(VOP_OUTPUT_IF_MIPI1 | VOP_OUTPUT_IF_MIPI0); |
---|
| 1113 | + else |
---|
| 1114 | + s->output_if &= ~(dsi->id ? VOP_OUTPUT_IF_MIPI1 : VOP_OUTPUT_IF_MIPI0); |
---|
1108 | 1115 | } |
---|
1109 | 1116 | |
---|
1110 | 1117 | static void dw_mipi_dsi_vop_routing(struct dw_mipi_dsi *dsi) |
---|