]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit60fbadd6d297f7a74e372a9977c4217da05f53e3
treea65253b7a7e110a7625fa1a5d64c60b02d954561
parent559e81c3cd1d70a2c275d92b25f6ffce62ff5b80
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