Searched hist:"6 fea745c27ed7cc301c53357cd39e37befd1ec21" (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/drivers/video/drm/ |
| H A D | rockchip_display.c | 6fea745c27ed7cc301c53357cd39e37befd1ec21 Wed Feb 12 02:24:38 UTC 2025 Damon Ding <damon.ding@rock-chips.com> video/drm: vop2: modify the check related to the plane mask and primary plane
The check rule for plane mask that assigned in DTS is:
If plane_mask is assigned in DTS, then every plane need to be assigned to one of all the VPs, and no single plane can be assigned to more than one VP.
In order to check whether the plane mask and primary plane assigned in DTS are valid, the modifications are as follows: 1.Move the process of automatically assigning the plane mask to a new function vop2_plane_mask_assign(), which can also be called if the plane mask and primary plane are invalid. 2.Add the &vop2_data.plane_mask_base for all platforms to help check whether the plane mask assigned in DTS is valid. 3.Add the new function vop2_plane_mask_check() to check the plane mask that assigned in DTS according to the above rule. If the return value of vop2_plane_mask_check() is false, then automatically assign the plane mask using the function vop2_plane_mask_assign(). 4.Transfer valid plane mask that assigned in DTS to the &vop2.possible_vp_mask. And the &vop2.possible_vp_mask is used in vop2_win_can_attach_to_vp() to check whether the plane can attach to the specific VP. 5.Remove &vop2_data.vp_default_primary_plane related codes, and Assign default primary plane according to &vop2.possible_vp_mask and &vop2_win_data.plane_type in the scenario where the plane mask is not specified in DTS 6.Remove &vop2_data.vp_primary_plane_order, and add new function vop2_vp_find_attachable_win() help select default primary plane when the plane mask is assigned in DTS while the primary plane is not. 7.Skip rockchip_vop2_fixup_dts() for the VOP3 platforms in order not to fixup the plane_mask related DTS properties when the plane mask is not assigned in DTS.
Change-Id: I027d065b72768caa82b5bd979c5c3dba118ba567 Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
|
| H A D | rockchip_vop2.c | 6fea745c27ed7cc301c53357cd39e37befd1ec21 Wed Feb 12 02:24:38 UTC 2025 Damon Ding <damon.ding@rock-chips.com> video/drm: vop2: modify the check related to the plane mask and primary plane
The check rule for plane mask that assigned in DTS is:
If plane_mask is assigned in DTS, then every plane need to be assigned to one of all the VPs, and no single plane can be assigned to more than one VP.
In order to check whether the plane mask and primary plane assigned in DTS are valid, the modifications are as follows: 1.Move the process of automatically assigning the plane mask to a new function vop2_plane_mask_assign(), which can also be called if the plane mask and primary plane are invalid. 2.Add the &vop2_data.plane_mask_base for all platforms to help check whether the plane mask assigned in DTS is valid. 3.Add the new function vop2_plane_mask_check() to check the plane mask that assigned in DTS according to the above rule. If the return value of vop2_plane_mask_check() is false, then automatically assign the plane mask using the function vop2_plane_mask_assign(). 4.Transfer valid plane mask that assigned in DTS to the &vop2.possible_vp_mask. And the &vop2.possible_vp_mask is used in vop2_win_can_attach_to_vp() to check whether the plane can attach to the specific VP. 5.Remove &vop2_data.vp_default_primary_plane related codes, and Assign default primary plane according to &vop2.possible_vp_mask and &vop2_win_data.plane_type in the scenario where the plane mask is not specified in DTS 6.Remove &vop2_data.vp_primary_plane_order, and add new function vop2_vp_find_attachable_win() help select default primary plane when the plane mask is assigned in DTS while the primary plane is not. 7.Skip rockchip_vop2_fixup_dts() for the VOP3 platforms in order not to fixup the plane_mask related DTS properties when the plane mask is not assigned in DTS.
Change-Id: I027d065b72768caa82b5bd979c5c3dba118ba567 Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
|