drm/vc4: Consolidate Hardware Revision Check
authorMaxime Ripard <maxime@cerno.tech>
Thu, 21 Apr 2022 12:27:11 +0000 (14:27 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 11 May 2022 15:33:21 +0000 (16:33 +0100)
commit34c64d366bafcf88b7476d5d60e0d1f794a348f2
tree1704767ff2da21969c4efa1ccbdd0a1e321f3720
parentda1758b1df59d52db5ddad796a7c7c4e407ca158
drm/vc4: Consolidate Hardware Revision Check

A new generation of controller has been introduced with the
BCM2711/RaspberryPi4. This generation needs a bunch of quirks, and over
time we've piled on a number of checks in most parts of the drivers.

All these checks are performed several times, and are not always
consistent. Let's create a single, global, variable to hold it and use
it everywhere.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_hvs.c
drivers/gpu/drm/vc4/vc4_kms.c
drivers/gpu/drm/vc4/vc4_plane.c