drm: sun4i: calculate proper DCLK rate for DSI
authorRoman Beranek <me@crly.cz>
Fri, 5 May 2023 05:21:10 +0000 (07:21 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 10 May 2023 14:03:19 +0000 (16:03 +0200)
commit4795c78768bcbd58d4ffab650674d314dc6dd772
treed1db11a6894b8ec06de0709a1f8f96bd1f29b021
parent71ffeafb13380b73f41bc16495962371c0fda596
drm: sun4i: calculate proper DCLK rate for DSI

In DSI mode, TCON0's data clock is required to run at 1/4 the per-lane
bit rate.

Signed-off-by: Roman Beranek <me@crly.cz>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20230505052110.67514-5-me@crly.cz
drivers/gpu/drm/sun4i/sun4i_tcon.c