drm/vc4: plane: Move planes creation to its own function
authorMaxime Ripard <maxime@cerno.tech>
Wed, 27 May 2020 15:47:47 +0000 (17:47 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 10 Jun 2020 09:09:37 +0000 (11:09 +0200)
commite10cde4ad0edca3ceffd87ac30a53d8977d06ba5
tree6d25f0d0cdf8a4e92fda675bf6eab03d258fda03
parent6a88752c092073da7357e9df67b838d4883a90d4
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
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_plane.c