drm/vc4: Adjust modes in DSI to work around the integer PLL divider.
authorEric Anholt <eric@anholt.net>
Thu, 11 May 2017 23:56:22 +0000 (16:56 -0700)
committerpopcornmix <popcornmix@gmail.com>
Tue, 6 Feb 2018 12:37:56 +0000 (12:37 +0000)
commitf94aa6661c564fe1da94fc4690d5800bfd0d45ef
treed7a6a1fc23055806a1943d29fda9b1937e68fc37
parent6ec6021bc0671dbd9fda4a693f2ebb94b652031e
drm/vc4: Adjust modes in DSI to work around the integer PLL divider.

BCM2835's PLLD_DSI1 divider doesn't give us many choices for our pixel
clocks, so to support panels on the Raspberry Pi we need to set a
higher pixel clock rate than requested and adjust the mode we program
to extend out the HFP so that the refresh rate matches.

v2: Drop an unfinished comment (caught by Noralf)

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170511235625.22427-2-eric@anholt.net
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
(cherry picked from commit 86c1b9eff3f27c82bceabd3b5c76376b26d26e92)
drivers/gpu/drm/vc4/vc4_dsi.c