]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mcde: Improve pixel fetcher FIFO depth setting
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 8 Aug 2020 22:31:19 +0000 (00:31 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 13 Aug 2020 14:39:08 +0000 (16:39 +0200)
commit0aad703a5f1333ba02fc285534cd348bf8913a36
tree4527a25b68a53b8a2324ac5907ff58e4d9992da4
parent3f2f9f67fc47226bb6a5b95b7e128c0b7ef00c3e
drm/mcde: Improve pixel fetcher FIFO depth setting

The pixel fetcher FIFO depth was just hardcoded to 48
which works fine as long as the framebuffer is 32BPP
and the DSI output is RGB888.

We will need more elaborate handling for some buffer
formats and displays, so start to improve this function
by setting reasonable defaults for 32, 24 and 16 BPP
framebuffers.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: newbytee@protonmail.com
Cc: Stephan Gerhold <stephan@gerhold.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200808223122.1492124-1-linus.walleij@linaro.org
drivers/gpu/drm/mcde/mcde_display.c