]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
drm/arm/hdlcd: Allow a bit of clock tolerance
authorRobin Murphy <robin.murphy@arm.com>
Fri, 17 May 2019 16:37:22 +0000 (17:37 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit970c180fbf1e4af5ae9e8241f2b90cd24fdd5e7a
treec29f76a79f6c533ebc99bbea47cc41ab516f8de5
parentfe80727dd73f90dc8ffa0cc104e74f088a39e2ab
drm/arm/hdlcd: Allow a bit of clock tolerance

BugLink: https://bugs.launchpad.net/bugs/1838824
[ Upstream commit 1c810739097fdeb31b393b67a0a1e3d7ffdd9f63 ]

On the Arm Juno platform, the HDLCD pixel clock is constrained to 250KHz
resolution in order to avoid the tiny System Control Processor spending
aeons trying to calculate exact PLL coefficients. This means that modes
like my oddball 1600x1200 with 130.89MHz clock get rejected since the
rate cannot be matched exactly. In practice, though, this mode works
quite happily with the clock at 131MHz, so let's relax the check to
allow a little bit of slop.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/gpu/drm/arm/hdlcd_crtc.c