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)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:57:31 +0000 (15:57 +0100)
commit89194bc00f167646ce859a19137d01a4c99fc320
treea7ab70bdee1bd56a357b1ddddc7aa340a67def15
parent29cfe97c69d02eedebf3c5a9f51a5cf9a5980c8d
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