]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: crtc: Move HVS setup code to the HVS driver
authorMaxime Ripard <maxime@cerno.tech>
Thu, 11 Jun 2020 13:36:47 +0000 (15:36 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 7 Jul 2020 08:51:16 +0000 (10:51 +0200)
commit68bc5d91fe99bf08b2a453b9b75020cd5d6f2609
treec628d878ce26e5176a3358a151f437bcb15b4729
parent9ed17390853c501f2b91d9ac7b8684d69fb4a0d6
drm/vc4: crtc: Move HVS setup code to the HVS driver

The CRTC in vc4 is backed by two devices, the HVS that does the composition
and the PixelValve that does the timing generation.

The writeback is kind of a special case since it doesn't have an associated
pixelvalve but goes straight from the HVS to the TXP. Therefore, it makes
sense to move out the HVS setup code into helpers so that we can also reuse
them from the TXP driver.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/96443394e81429ee38f070cfe231701b07e56d69.1591882579.git-series.maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_hvs.c