Skip to contentSkip to conversation

drm/rockchip: vop_reg: add PX30 version info

PATCH Applied Johan Jonker 2 participants 2 messages Feb 1, 2021 – May 28, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/rockchip: vop_reg: add PX30 version info

To reduce memory various Rockchip VOP versions share common reg structures. However more recent added SoCs not always have to same futures as the old ones.
Add PX30 missing version info, so all VOP version checks work correct if needed in the future.

---
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/rockchip/rockchip_vop_reg.c +2 -0
index 80053d91a..0697057e7 100644
@@ -312,6 +312,7 @@ static const struct vop_win_data px30_vop_big_win_data[] = {
 };
 
 static const struct vop_data px30_vop_big = {
+	.version = VOP_VERSION(2, 6),
 	.intr = &px30_intr,
 	.feature = VOP_FEATURE_INTERNAL_RGB,
 	.common = &px30_common,
@@ -327,6 +328,7 @@ static const struct vop_win_data px30_vop_lit_win_data[] = {
 };
 
 static const struct vop_data px30_vop_lit = {
+	.version = VOP_VERSION(2, 5),
 	.intr = &px30_intr,
 	.feature = VOP_FEATURE_INTERNAL_RGB,
 	.common = &px30_common,
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Applied
#1 lore raw
Quoted 5 lines · Johan Jonker

To reduce memory various Rockchip VOP versions share common reg structures. However more recent added SoCs not always have to same futures as the old ones.
Add PX30 missing version info, so all VOP version checks work correct if needed in the future.

Applied, thanks!

[1/1] drm/rockchip: vop_reg: add PX30 version info

      commit: 872b68e9750eddd086b93a6004ebe82c64aef670

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>