forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/gpu/drm/mediatek/mtk_drm_plane.h
....@@ -1,15 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2015 MediaTek Inc.
34 * Author: CK Hu <ck.hu@mediatek.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146
157 #ifndef _MTK_DRM_PLANE_H_
....@@ -28,7 +20,10 @@
2820 unsigned int y;
2921 unsigned int width;
3022 unsigned int height;
23
+ unsigned int rotation;
3124 bool dirty;
25
+ bool async_dirty;
26
+ bool async_config;
3227 };
3328
3429 struct mtk_plane_state {
....@@ -43,6 +38,7 @@
4338 }
4439
4540 int mtk_plane_init(struct drm_device *dev, struct drm_plane *plane,
46
- unsigned long possible_crtcs, enum drm_plane_type type);
41
+ unsigned long possible_crtcs, enum drm_plane_type type,
42
+ unsigned int supported_rotations);
4743
4844 #endif