OSDN Git Service

drm/vc4: dsi: Convert to using a bridge instead of encoder
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 7 Dec 2022 10:22:48 +0000 (11:22 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 15 Dec 2022 07:57:17 +0000 (08:57 +0100)
commit78df640394cd0de88b9f84982f90f2079e60a5b7
tree25baaaf5bb18daf061079ac18fb4c53d61b34438
parent91ef7f4cf49433fe7c27307724dc9914caca9927
drm/vc4: dsi: Convert to using a bridge instead of encoder

Remove the encoder functions, and create a bridge attached to
this dumb encoder which implements the same functionality.

As a bridge has state which an encoder doesn't, we need to
add the state management functions as well.

As there is no bridge atomic_mode_set, move the initialisation
code that was in mode_set into _pre_enable.
The code to actually enable and disable sending video are split
from the general control into _enable and _disable.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20221207-rpi-dsi-bridge-v1-5-8f68ee0b0adb@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_dsi.c