drm/sun4i: tcon: Support an active-low DE signal with RGB interface

Some panels need an active-low data enable (DE) signal for the RGB
interface. This requires flipping a bit in the TCON0 polarity register
when setting up the mode for the RGB interface.

Match the associated bus flag and use it to set the polarity inversion
bit for the DE signal when required.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181107181843.27628-4-contact@paulk.fr
This commit is contained in:
Paul Kocialkowski 2018-11-07 19:18:38 +01:00 • committed by Maxime Ripard
commit 65bf2d54f0
No known key found for this signature in database
GPG key ID: E3EF0D6F671851C5
2 changed files with 7 additions and 1 deletions