0001
0002
0003
0004
0005
0006 #ifndef MTK_DRM_CRTC_H
0007 #define MTK_DRM_CRTC_H
0008
0009 #include <drm/drm_crtc.h>
0010 #include "mtk_drm_ddp_comp.h"
0011 #include "mtk_drm_plane.h"
0012
0013 #define MTK_LUT_SIZE 512
0014 #define MTK_MAX_BPC 10
0015 #define MTK_MIN_BPC 3
0016
0017 void mtk_drm_crtc_commit(struct drm_crtc *crtc);
0018 int mtk_drm_crtc_create(struct drm_device *drm_dev,
0019 const enum mtk_ddp_comp_id *path,
0020 unsigned int path_len);
0021 int mtk_drm_crtc_plane_check(struct drm_crtc *crtc, struct drm_plane *plane,
0022 struct mtk_plane_state *state);
0023 void mtk_drm_crtc_async_update(struct drm_crtc *crtc, struct drm_plane *plane,
0024 struct drm_atomic_state *plane_state);
0025
0026 #endif