Jernej Skrabec 50791f5d7b
drm/sun4i: tcon: set sync polarity for tcon1 channel
Channel 1 has polarity bits for vsync and hsync signals but driver never
sets them. It turns out that with pre-HDMI2 controllers seemingly there
is no issue if polarity is not set. However, with HDMI2 controllers
(H6) there often comes to de-synchronization due to phase shift. This
causes flickering screen. It's safe to assume that similar issues might
happen also with pre-HDMI2 controllers.

Solve issue with setting vsync and hsync polarity. Note that display
stacks with tcon top have polarity bits actually in tcon0 polarity
register.

Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support")
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Andre Heider <a.heider@gmail.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210209175900.7092-3-jernej.skrabec@siol.net
2021-02-10 11:19:56 +01:00
..
2020-12-15 10:21:48 +01:00
2020-12-14 11:07:56 -08:00
2020-12-14 11:07:56 -08:00
2020-08-06 14:27:31 -07:00
2020-11-13 14:53:34 +10:00
2020-12-18 12:38:28 -08:00
2020-12-15 10:21:48 +01:00
2020-12-16 16:38:41 -08:00
2020-12-15 10:21:48 +01:00
2020-12-15 10:21:48 +01:00
2020-12-18 12:38:28 -08:00
2020-12-14 11:07:56 -08:00
2020-12-14 11:07:56 -08:00
2020-11-06 10:31:26 +01:00
2020-11-16 20:48:20 +01:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2020-11-16 20:48:20 +01:00
2020-08-11 11:58:31 +10:00
2021-01-20 10:28:39 +01:00