drm/vc4: Move pixel doubling from Pixelvalve to HDMI block
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 17 May 2022 16:34:11 +0000 (17:34 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 18 May 2022 08:12:04 +0000 (09:12 +0100)
commit7f1f585bd1bd24656fc915e72cbda5c36b07221e
treeadfd3a504b172e66ee8ecc325867f8d6a7644bed
parentc0ba150ce468738f550d5626974eebeebba9fd37
drm/vc4: Move pixel doubling from Pixelvalve to HDMI block

With the change to 2 pixels/clock, the pixel doubling in the PV
results in doubling each pair of pixels, ie ABABCDCD instead of
AABBCCDD.

Move the pixel doubling to the HDMI block, however this means
that DBLCLK modes now fall foul of requiring even values for
all the horizontal timing parameters.
As both 480i and 576i fail this, attempt to fix up DBLCLK modes
that have odd timings values.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_hdmi.c