]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39e114e23a5dacdc400b7cbbd98631cb88491b81
tree6d25f0d0cdf8a4e92fda675bf6eab03d258fda03
parente176018cf638a3eea019bf7566052abe3faac050
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