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)
committerEric Anholt <eric@anholt.net>
Tue, 16 May 2017 16:49:24 +0000 (09:49 -0700)
commit86c1b9eff3f27c82bceabd3b5c76376b26d26e92
tree3f9a3c033d0bfc0da0035ec6a2ccd4fb340dd36e
parentfdb888de9ef922c01c1a4a846a2498f572b8dcf4
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>
drivers/gpu/drm/vc4/vc4_dsi.c