OSDN Git Service

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