drm/armada: improve Dove clock selection
authorRussell King <rmk+kernel@armlinux.org.uk>
Sat, 14 Jul 2018 10:15:35 +0000 (11:15 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sat, 22 Jun 2019 10:51:20 +0000 (11:51 +0100)
commit1ba246f2fd2f6e6647b29e362a7d8c235e7fe9a7
tree9d3880930a57576f3bb192fe0288b0576e66cdbe
parent7f07ce0f04e25cd41a85ee780dbe85b40c9e3482
drm/armada: improve Dove clock selection

Improve the Dove (Armada 510) LCD clock selection and divider
calculation, limiting to the valid divisor values, and reporting an
error if the clock is not achievable within the bounds of HDMI
clocking requirements.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/armada/armada_510.c
drivers/gpu/drm/armada/armada_crtc.c
drivers/gpu/drm/armada/armada_crtc.h