]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Compute the CEC clock divider from the clock rate
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jan 2021 14:23:00 +0000 (15:23 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 28 Jan 2021 09:28:27 +0000 (10:28 +0100)
commitc974af073aa3f08f1c22c28d60b2162fcaf75da0
tree95fccc576a4221a66bde6c5caa843202902a363e
parent5ffcecbdba215df68b92d9afc2e97ba0346348bb
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: d3c633837e4c ("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
drivers/gpu/drm/vc4/vc4_hdmi.c