drm/bridge: tc358768: fix TXTAGOCNT computation
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 27 Apr 2023 14:29:32 +0000 (16:29 +0200)
committerRobert Foss <rfoss@kernel.org>
Fri, 5 May 2023 18:11:48 +0000 (20:11 +0200)
commit3666aad8185af8d0ce164fd3c4974235417d6d0b
tree00df68b50960ab3191c72290fc67b3ace98bf3a2
parent77a089328da791118af9692543a5eedc79eb5fd4
drm/bridge: tc358768: fix TXTAGOCNT computation

Correct computation of TXTAGOCNT register.

This register must be set to a value that ensure that the
TTA-GO period = (4 x TLPX)

with the actual value of TTA-GO being

4 x (TXTAGOCNT + 1) x (HSByteClk cycle)

Fixes: ff1ca6397b1d ("drm/bridge: Add tc358768 driver")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230427142934.55435-8-francesco@dolcini.it
drivers/gpu/drm/bridge/tc358768.c