OSDN Git Service

drm/tegra: dc: Support rotation property
authorThierry Reding <treding@nvidia.com>
Mon, 19 Mar 2018 16:20:46 +0000 (17:20 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 18 May 2018 19:56:21 +0000 (21:56 +0200)
commit995c5a509fb032ddd83eff4f3772c7fc8ff0b7ec
treea65253b7a7e110a7625fa1a5d64c60b02d954561
parent4bd91a5b5dbb8b536208396c3d032cba8e3c3913
drm/tegra: dc: Support rotation property

Currently only the DRM_MODE_REFLECT_Y rotation is supported. The driver
already supports reflection on the Y axis via a custom flag which is not
very useful because it requires custom userspace. Add the standard
rotation property that supports 0 degree rotation and Y axis reflection
for primary and overlay planes to provide a better interface than the
custom flag.

v2: keep custom flag for ABI compatibility (Dmitry)

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/plane.c
drivers/gpu/drm/tegra/plane.h