linux/drivers/gpu/drm/atmel-hlcdc
Peter Rosin 9946a3a9db drm/atmel-hlcdc: allow selecting a higher pixel-clock than requested
But only if the highest pixel-clock frequency lower than requested
is significantly less accurate than the lowest frequency higher than
requested.

I pulled "10 times" as the discriminator out of the hat, and went with
that.

This is useful, if e.g. the target pixel-clock is 65MHz and the sys_clk
is 132MHz. In this case the highest possible pixel-clock lower than the
requested 65MHz is 52.8MHz, which is almost 20% off (and outside the
spec for the panel). The lowest possible pixel-clock higher than 65MHz
is 66MHz, which is a *much* better match, and only 1.5% off.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180824092458.13165-3-peda@axentia.se
2018-08-27 21:13:01 +02:00
..
atmel_hlcdc_crtc.c drm/atmel-hlcdc: allow selecting a higher pixel-clock than requested 2018-08-27 21:13:01 +02:00
atmel_hlcdc_dc.c drm/atmel-hlcdc: Stop using plane->fb 2018-05-25 21:21:39 +03:00
atmel_hlcdc_dc.h drm/atmel-hclcdc: Convert to the new generic alpha property 2018-04-16 21:20:40 +02:00
atmel_hlcdc_output.c Merge tag 'drm-misc-next-2017-06-15' of git://anongit.freedesktop.org/git/drm-misc into drm-next 2017-06-16 09:33:43 +10:00
atmel_hlcdc_plane.c drm: atmel-hlcdc: Use __drm_atomic_helper_plane_reset instead of copying the logic 2018-08-06 11:41:49 +01:00
Kconfig drm/atmel-hlcdc: make fbdev support really optional 2016-07-15 10:28:33 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00