drm/vc4: dsi: Introduce a variant structure
authorMaxime Ripard <maxime@cerno.tech>
Thu, 3 Dec 2020 13:25:39 +0000 (14:25 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 21 Apr 2021 10:49:20 +0000 (11:49 +0100)
commitc764b8e9e78ee70ae17a317ce5ad627b5a73f110
tree590f43e4db285a63b1ac5a4250cd18033b44b0f7
parent9a98d8f5cd43237cd343cdac8711b63a81fe01e8
drm/vc4: dsi: Introduce a variant structure

Commit d1d195ce26a14ec0a87816c09ae514e1c40e97f7 upstream.

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