Skip to content

Commit 4fba6d2

Browse files
digetxthierryreding
authored andcommitted
drm/tegra: plane: Support 180° rotation
Combining horizontal and vertical reflections gives us 180 degrees of rotation. Both reflection modes are already supported, and thus, we just need to mark the 180 rotation mode as supported. The 180 rotation mode is needed for devices like Nexus 7 tablet, which have display panel mounted upside-down. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent cd74077 commit 4fba6d2

File tree

1 file changed

+2
-0
lines changed
  • drivers/gpu/drm/tegra

1 file changed

+2
-0
lines changed

drivers/gpu/drm/tegra/dc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ static struct drm_plane *tegra_primary_plane_create(struct drm_device *drm,
816816
err = drm_plane_create_rotation_property(&plane->base,
817817
DRM_MODE_ROTATE_0,
818818
DRM_MODE_ROTATE_0 |
819+
DRM_MODE_ROTATE_180 |
819820
DRM_MODE_REFLECT_X |
820821
DRM_MODE_REFLECT_Y);
821822
if (err < 0)
@@ -1105,6 +1106,7 @@ static struct drm_plane *tegra_dc_overlay_plane_create(struct drm_device *drm,
11051106
err = drm_plane_create_rotation_property(&plane->base,
11061107
DRM_MODE_ROTATE_0,
11071108
DRM_MODE_ROTATE_0 |
1109+
DRM_MODE_ROTATE_180 |
11081110
DRM_MODE_REFLECT_X |
11091111
DRM_MODE_REFLECT_Y);
11101112
if (err < 0)

0 commit comments

Comments
 (0)