1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2022 Marek Vasut <marex@denx.de>
5 * i.MX8MP/i.MXRT LCDIFv3 LCD controller driver.
8 #ifndef __LCDIF_DRV_H__
9 #define __LCDIF_DRV_H__
11 #include <drm/drm_bridge.h>
12 #include <drm/drm_crtc.h>
13 #include <drm/drm_device.h>
14 #include <drm/drm_encoder.h>
15 #include <drm/drm_plane.h>
19 struct lcdif_drm_private {
20 void __iomem *base; /* registers */
23 struct clk *clk_disp_axi;
27 struct drm_device *drm;
29 struct drm_plane primary;
30 /* i.MXRT does support overlay planes, add them here. */
33 struct drm_encoder encoder;
36 static inline struct lcdif_drm_private *
37 to_lcdif_drm_private(struct drm_device *drm)
39 return drm->dev_private;
42 int lcdif_kms_init(struct lcdif_drm_private *lcdif);
44 #endif /* __LCDIF_DRV_H__ */