/* Set possible_crtcs to this crtc for overlay planes */
        for (i = 0; planes[i]; i++) {
-               uint32_t possible_crtcs = BIT(drm_crtc_index(&scrtc->crtc));
+               uint32_t possible_crtcs = drm_crtc_mask(&scrtc->crtc);
                struct drm_plane *plane = planes[i];
 
                if (plane->type == DRM_PLANE_TYPE_OVERLAY)
 
        }
 
        /* The LVDS encoder can only work with the TCON channel 0 */
-       lvds->encoder.possible_crtcs = BIT(drm_crtc_index(&tcon->crtc->crtc));
+       lvds->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc);
 
        if (tcon->panel) {
                drm_connector_helper_add(&lvds->connector,
 
        }
 
        /* The RGB encoder can only work with the TCON channel 0 */
-       rgb->encoder.possible_crtcs = BIT(drm_crtc_index(&tcon->crtc->crtc));
+       rgb->encoder.possible_crtcs = drm_crtc_mask(&tcon->crtc->crtc);
 
        if (tcon->panel) {
                drm_connector_helper_add(&rgb->connector,