drm/sun4i: frontend: Add a quirk structure
authorMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 18 Jan 2019 14:51:28 +0000 (15:51 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 18 Jan 2019 20:12:00 +0000 (21:12 +0100)
commit35f366544ccda26037128eb36c83473989a5fa1c
tree259fe565341ddaf1e17a3b676d55dc5ede5773f4
parent94018601568c7bb9ff7ff1e861e7a6a5a49e2e29
drm/sun4i: frontend: Add a quirk structure

The ACCESS_CTRL bit is not found on all the variants of the frontend, so
let's introduce a structure that will hold whether or not we need to set
it, and associate it with the compatible.

This will be extended for further similar quirks later on.

Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190118145133.21281-19-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_frontend.c
drivers/gpu/drm/sun4i/sun4i_frontend.h