drm/meson: add RDMA module driver
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 21 Oct 2019 09:15:04 +0000 (11:15 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 10 Dec 2019 09:08:45 +0000 (10:08 +0100)
commit63fba242c464ba3417d33f97bc0d47bbf46d0721
tree9359749cf60919f250956e4c8d3fd3fc11cadc25
parentce7cb472108c37884c6084b317ceb07592906133
drm/meson: add RDMA module driver

The VPU embeds a "Register DMA" that can write a sequence of registers
on the VPU AHB bus, either manually or triggered by an internal IRQ
event like VSYNC or a line input counter.

The initial implementation handles a single channel (over 8), triggered
by the VSYNC irq and does not handle the RDMA irq.

The RDMA will be usefull to reset and program the AFBC decoder unit
on each vsync without involving the interrupt handler that can
be masked for a log period of time, producing display glitches.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191021091509.3864-5-narmstrong@baylibre.com
drivers/gpu/drm/meson/Makefile
drivers/gpu/drm/meson/meson_drv.h
drivers/gpu/drm/meson/meson_rdma.c [new file with mode: 0644]
drivers/gpu/drm/meson/meson_rdma.h [new file with mode: 0644]