drm/ingenic: Fix non-OSD mode
authorPaul Cercueil <paul@crapouillou.net>
Sun, 24 Jan 2021 08:55:52 +0000 (08:55 +0000)
committerPaul Cercueil <paul@crapouillou.net>
Sun, 7 Mar 2021 16:27:22 +0000 (16:27 +0000)
commit7b4957684e5d813fcbdc98144e3cc5c4467b3e2e
tree07d2b0a06525bfd5b0ba857f7a0f9ec9683d0341
parentd0c5ac04e7feedbc069f26f4dcbf35b521ae7fc5
drm/ingenic: Fix non-OSD mode

Even though the JZ4740 did not have the OSD mode, it had (according to
the documentation) two DMA channels, but there is absolutely no
information about how to select the second DMA channel.

Make the ingenic-drm driver work in non-OSD mode by using the
foreground0 plane (which is bound to the DMA0 channel) as the primary
plane, instead of the foreground1 plane, which is the primary plane
when in OSD mode.

Fixes: 3c9bea4ef32b ("drm/ingenic: Add support for OSD mode")
Cc: <stable@vger.kernel.org> # v5.8+
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210124085552.29146-5-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-drm-drv.c