Maxime Ripard 163a3ef681 drm/vc4: hdmi: Compute the CEC clock divider from the clock rate
The CEC clock divider needs to output a frequency of 40kHz from the HSM
rate on the BCM2835. The driver used to have a fixed frequency for it,
but that changed for the BCM2711 and we now need to compute it
dynamically to maintain the proper rate.

Fixes: cd4cb49dc5bb ("drm/vc4: hdmi: Adjust HSM clock rate depending on pixel rate")
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Tested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Link: https://patchwork.freedesktop.org/patch/msgid/20210111142309.193441-7-maxime@cerno.tech
(cherry picked from commit f1ceb9d10043683b89e5e5e5848fb4e855295762)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2021-02-09 17:14:10 +01:00
..
2021-01-07 10:46:32 +01:00
2020-12-14 11:07:56 -08:00
2020-08-06 14:27:31 -07:00
2020-12-18 12:38:28 -08:00
2020-12-15 10:21:48 +01:00
2021-02-05 09:25:26 +10:00
2021-01-07 14:11:28 +01:00
2021-01-25 14:35:44 +10:00
2020-12-15 15:46:03 +02:00
2021-01-25 14:35:44 +10:00
2021-01-25 14:35:44 +10:00
2021-01-04 12:59:33 +01:00
2020-09-21 10:45:08 +02:00
2020-08-11 11:58:31 +10:00
2021-01-07 13:40:20 +01:00
2020-08-11 11:58:31 +10:00
2021-01-25 14:35:44 +10:00
2021-01-20 10:28:39 +01:00
2021-01-14 15:47:45 +01:00