]> 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)
commit6aa586f360087719cd4db5f1a7dc6cfa7a3ca853
tree6d25f0d0cdf8a4e92fda675bf6eab03d258fda03
parent4cc65da482bdeac744ad3d789b682a8ca8f0be88
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