]> git.baikalelectronics.ru Git - 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)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 4 Jun 2019 14:12:45 +0000 (15:12 +0100)
commitb6194bf4d2bd608a8e421a1a9f6d8b9e60b8962a
tree2d0c3d2f54f0ac0fd168b3ebcfa66b7de61982ad
parenteb7c5dfd79d5e2d3c08f348d530d29ab2c006c36
drm/arm/hdlcd: Allow a bit of clock tolerance

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>
drivers/gpu/drm/arm/hdlcd_crtc.c