OSDN Git Service

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)
commit8175287bdd06c8a1941884b832ad7cbbb1f1ef83
treec628d878ce26e5176a3358a151f437bcb15b4729
parent247c12fcba30ecb9473fe6b6c0375d46916417c9
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