]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: hdmi: Update the CEC clock divider on HSM rate change
authorMaxime Ripard <maxime@cerno.tech>
Mon, 11 Jan 2021 14:23:01 +0000 (15:23 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 28 Jan 2021 09:28:32 +0000 (10:28 +0100)
commit0e91a82bd500d450aec651940517130cbb309fee
tree2f70863d5171df0c713bd379e2fb7f023b297d80
parentc974af073aa3f08f1c22c28d60b2162fcaf75da0
drm/vc4: hdmi: Update the CEC clock divider on HSM rate change

As part of the enable sequence we might change the HSM clock rate if the
pixel rate is different than the one we were already dealing with.

On the BCM2835 however, the CEC clock derives from the HSM clock so any
rate change will need to be reflected in the CEC clock divider to output
40kHz.

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-8-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_hdmi.c