]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: tcon: Support an active-low DE signal with RGB interface
authorPaul Kocialkowski <contact@paulk.fr>
Wed, 7 Nov 2018 18:18:38 +0000 (19:18 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 9 Nov 2018 07:31:28 +0000 (08:31 +0100)
commitd1c353dfdd4bcdea543ee4c2bb8144a0562d04dd
treeba66971e44d5f57df6ba521f364cad34ddfb6bf9
parent1b5fa4ab715a7a619a7c8120b940c874af21767b
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
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun4i_tcon.h