summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/vc4_drv.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime@cerno.tech>2020-05-27 17:47:47 +0200
committerMaxime Ripard <maxime@cerno.tech>2020-06-10 11:09:37 +0200
commite10cde4ad0edca3ceffd87ac30a53d8977d06ba5 (patch)
tree6d25f0d0cdf8a4e92fda675bf6eab03d258fda03 /drivers/gpu/drm/vc4/vc4_drv.h
parent6a88752c092073da7357e9df67b838d4883a90d4 (diff)
downloadlinux-e10cde4ad0edca3ceffd87ac30a53d8977d06ba5.tar.gz
linux-e10cde4ad0edca3ceffd87ac30a53d8977d06ba5.tar.bz2
linux-e10cde4ad0edca3ceffd87ac30a53d8977d06ba5.zip
drm/vc4: plane: Move planes creation to its own function
The planes so far were created as part of the CRTC binding code with each planes created associated only to one CRTC. However, the hardware in the vc4 doesn't really have such constraint and can be used with any CRTC. In order to rework this, let's first move the overlay and cursor planes creation to a function of its own. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/a378ea56214179f1f25fcd36ecc69511edd1e790.1590594512.git-series.maxime@cerno.tech
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_drv.h')
-rw-r--r--drivers/gpu/drm/vc4/vc4_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_drv.h b/drivers/gpu/drm/vc4/vc4_drv.h
index 6f50a91e3933..bb3416e7624a 100644
--- a/drivers/gpu/drm/vc4/vc4_drv.h
+++ b/drivers/gpu/drm/vc4/vc4_drv.h
@@ -846,6 +846,8 @@ int vc4_kms_load(struct drm_device *dev);
/* vc4_plane.c */
struct drm_plane *vc4_plane_init(struct drm_device *dev,
enum drm_plane_type type);
+int vc4_plane_create_additional_planes(struct drm_device *dev,
+ struct drm_crtc *crtc);
u32 vc4_plane_write_dlist(struct drm_plane *plane, u32 __iomem *dlist);
u32 vc4_plane_dlist_size(const struct drm_plane_state *state);
void vc4_plane_async_set_fb(struct drm_plane *plane,