diff options
author | Sean Paul <seanpaul@chromium.org> | 2019-11-05 16:10:21 -0500 |
---|---|---|
committer | CK Hu <ck.hu@mediatek.com> | 2019-11-06 16:00:44 +0800 |
commit | ef87d3e2dd251374c5c9fa3b6502aeff8fe29da9 (patch) | |
tree | e72a5b01f9a33065b5aa2335d46cdbd8bccb0578 /drivers/gpu/drm/mediatek/mtk_drm_plane.h | |
parent | drm/mediatek: Add plumbing for layer_check hook (diff) | |
download | linux-dev-ef87d3e2dd251374c5c9fa3b6502aeff8fe29da9.tar.xz linux-dev-ef87d3e2dd251374c5c9fa3b6502aeff8fe29da9.zip |
drm/mediatek: Plumb supported rotation values from components to plane init
This patch adds the ability for components to expose supported rotations
which will be exposed to userspace via a plane rotation property.
No functional changes in this patch.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/mediatek/mtk_drm_plane.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.h b/drivers/gpu/drm/mediatek/mtk_drm_plane.h index 6f842df722c7..760885e35b27 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.h +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.h @@ -20,6 +20,7 @@ struct mtk_plane_pending_state { unsigned int y; unsigned int width; unsigned int height; + unsigned int rotation; bool dirty; }; @@ -35,6 +36,7 @@ to_mtk_plane_state(struct drm_plane_state *state) } int mtk_plane_init(struct drm_device *dev, struct drm_plane *plane, - unsigned long possible_crtcs, enum drm_plane_type type); + unsigned long possible_crtcs, enum drm_plane_type type, + unsigned int supported_rotations); #endif |