drm/vc4: dsi: Introduce a variant structure
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Dec 2020 13:25:39 +0000 (14:25 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 7 Dec 2020 09:33:25 +0000 (10:33 +0100)
commitd1d195ce26a14ec0a87816c09ae514e1c40e97f7
tree114ddffecd1ba1ac38ff141fa5ebbee426addef0
parentdc0bf36401e891c853e0a25baeb4e0b4e6f3626d
drm/vc4: dsi: Introduce a variant structure

Most of the differences between DSI0 and DSI1 are handled through the
ID. However, the BCM2711 DSI is going to introduce one more variable to
the mix and will break some expectations of the earlier, simpler, test.

Let's add a variant structure that will address most of the differences
between those three controllers.

Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20201203132543.861591-5-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_dsi.c