drm/i2c: tda998x: add support for pixel repeated modes
authorRussell King <rmk+kernel@armlinux.org.uk>
Sun, 8 Jul 2018 21:19:02 +0000 (22:19 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 13 Jun 2019 20:55:03 +0000 (21:55 +0100)
commit2807ba75970367c528a9c43aef6296c95eade5be
tree80e9502d6512487d54aedc7da785d419f8038edc
parent125a4f9394c769bc3e4306ff6cc73529bc1fa6dd
drm/i2c: tda998x: add support for pixel repeated modes

TDA998x has no support for pixel repeated modes, and the code notes this
as a "TODO" item.  The implementation appears to be relatively simple,
so lets add it.

We need to calculate the serializer clock divisor based on the TMDS
clock rate, set the repeat control, and set the serializer pixel
repeat count.  Since the audio code needs the actual TMDS clock,
record that.

Tested-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c