drm/sun4i: frontend: Add helpers for input data mode and pixel sequence
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 23 Nov 2018 09:24:49 +0000 (10:24 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 27 Nov 2018 08:53:34 +0000 (09:53 +0100)
commit47d0f9bdb190eccbd2d9f9b6a585ae64e48f8183
treee7ad58e66444ceecb484f1496c390e6d144aebdf
parent01260ffad2a8eff7f43218bdc93072fd068036f6
drm/sun4i: frontend: Add helpers for input data mode and pixel sequence

This introduces new helpers for retrieving the input data mode and pixel
sequence register field values based on the DRM format instead of
hardcoding these. This makes it easier to add support for more formats.

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