diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-27 05:06:54 +0300 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2020-07-28 17:21:58 +0200 |
commit | 63aa581c3019301e998b148c1eb63a108aca365f (patch) | |
tree | 9ddf404498517aa7bc1af6be12d5fd0540c147c4 /drivers/gpu/drm/mxsfb/mxsfb_drv.h | |
parent | b963ad95a06a5480367dd25a807e5bc0dd83842e (diff) | |
download | linux-63aa581c3019301e998b148c1eb63a108aca365f.tar.gz |
drm: mxsfb: Support the alpha plane
The LCDIF in the i.MX6SX and i.MX7 have a second plane called the alpha
plane. Support it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200727020654.8231-23-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/mxsfb/mxsfb_drv.h')
-rw-r--r-- | drivers/gpu/drm/mxsfb/mxsfb_drv.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.h b/drivers/gpu/drm/mxsfb/mxsfb_drv.h index f883b56caed3..399d23e91ed1 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.h +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.h @@ -21,6 +21,7 @@ struct mxsfb_devdata { unsigned int next_buf; unsigned int hs_wdth_mask; unsigned int hs_wdth_shift; + bool has_overlay; }; struct mxsfb_drm_private { @@ -32,7 +33,10 @@ struct mxsfb_drm_private { struct clk *clk_disp_axi; struct drm_device *drm; - struct drm_plane plane; + struct { + struct drm_plane primary; + struct drm_plane overlay; + } planes; struct drm_crtc crtc; struct drm_encoder encoder; struct drm_connector *connector; |