Thomas Gleixner | 1802d0b | 2019-05-27 08:55:21 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
CK Hu | 119f517 | 2016-01-04 18:36:34 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2015 MediaTek Inc. |
CK Hu | 119f517 | 2016-01-04 18:36:34 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef MTK_DRM_CRTC_H |
| 7 | #define MTK_DRM_CRTC_H |
| 8 | |
| 9 | #include <drm/drm_crtc.h> |
| 10 | #include "mtk_drm_ddp_comp.h" |
| 11 | #include "mtk_drm_plane.h" |
| 12 | |
Bibby Hsieh | 2f3f4dd | 2016-07-28 10:22:54 +0800 | [diff] [blame] | 13 | #define MTK_LUT_SIZE 512 |
Bibby Hsieh | 7216436 | 2016-07-28 10:22:55 +0800 | [diff] [blame] | 14 | #define MTK_MAX_BPC 10 |
| 15 | #define MTK_MIN_BPC 3 |
CK Hu | 119f517 | 2016-01-04 18:36:34 +0100 | [diff] [blame] | 16 | |
CK Hu | 119f517 | 2016-01-04 18:36:34 +0100 | [diff] [blame] | 17 | void mtk_drm_crtc_commit(struct drm_crtc *crtc); |
Stu Hsieh | f265905 | 2018-08-09 10:15:48 +0800 | [diff] [blame] | 18 | void mtk_crtc_ddp_irq(struct drm_crtc *crtc, struct mtk_ddp_comp *comp); |
CK Hu | 119f517 | 2016-01-04 18:36:34 +0100 | [diff] [blame] | 19 | int mtk_drm_crtc_create(struct drm_device *drm_dev, |
| 20 | const enum mtk_ddp_comp_id *path, |
| 21 | unsigned int path_len); |
Sean Paul | f7c710d | 2019-11-05 16:10:20 -0500 | [diff] [blame] | 22 | int mtk_drm_crtc_plane_check(struct drm_crtc *crtc, struct drm_plane *plane, |
| 23 | struct mtk_plane_state *state); |
CK Hu | 119f517 | 2016-01-04 18:36:34 +0100 | [diff] [blame] | 24 | |
| 25 | #endif /* MTK_DRM_CRTC_H */ |