]> 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)
commit4a44c2a802aea7d57004c7e74a22372b0f242719
tree2f70863d5171df0c713bd379e2fb7f023b297d80
parent9b725d72e09ff9e14f01b1026079c5c9c86e7c01
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: f1fcd1a41666 ("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