alistair23-linux/drivers/gpu/drm/meson/meson_rdma.h
Neil Armstrong 63fba242c4 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
2019-12-10 10:08:45 +01:00

22 lines
596 B
C

/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2019 BayLibre, SAS
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
#ifndef __MESON_RDMA_H
#define __MESON_RDMA_H
#include "meson_drv.h"
int meson_rdma_init(struct meson_drm *priv);
void meson_rdma_free(struct meson_drm *priv);
void meson_rdma_setup(struct meson_drm *priv);
void meson_rdma_reset(struct meson_drm *priv);
void meson_rdma_stop(struct meson_drm *priv);
void meson_rdma_writel_sync(struct meson_drm *priv, uint32_t val, uint32_t reg);
void meson_rdma_flush(struct meson_drm *priv);
#endif /* __MESON_RDMA_H */