drm/ingenic: Properly compute timings when using a 3x8-bit panel
authorPaul Cercueil <paul@crapouillou.net>
Thu, 19 Nov 2020 15:55:58 +0000 (15:55 +0000)
committerPaul Cercueil <paul@crapouillou.net>
Tue, 8 Dec 2020 13:55:56 +0000 (13:55 +0000)
commit28ab7d35b6e0796dd7a9a382473e2b41a68ff906
tree9ad6621d5debaccba9e330d3745554a49f417a07
parent15b7e07bcb2ef3101dfe8413eb67005dadb2f90f
drm/ingenic: Properly compute timings when using a 3x8-bit panel

The LCD controller expects timing values in dot-clock ticks, which is 3x
the timing values in pixels when using a 3x8-bit display; but it will
count the display area size in pixels either way. Go figure.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20201119155559.14112-3-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-drm-drv.c