提交 dd082cef 编写于 作者: B Boris Brezillon 提交者: Rob Herring

drm/panfrost: Move gpu_{write, read}() macros to panfrost_regs.h

So they can be used from other files.
Signed-off-by: NBoris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: NAlyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: NRob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618081648.17297-2-boris.brezillon@collabora.com
上级 eb69c8a4
......@@ -17,9 +17,6 @@
#include "panfrost_gpu.h"
#include "panfrost_regs.h"
#define gpu_write(dev, reg, data) writel(data, dev->iomem + reg)
#define gpu_read(dev, reg) readl(dev->iomem + reg)
static irqreturn_t panfrost_gpu_irq_handler(int irq, void *data)
{
struct panfrost_device *pfdev = data;
......
......@@ -295,4 +295,7 @@
#define AS_FAULTSTATUS_ACCESS_TYPE_READ (0x2 << 8)
#define AS_FAULTSTATUS_ACCESS_TYPE_WRITE (0x3 << 8)
#define gpu_write(dev, reg, data) writel(data, dev->iomem + reg)
#define gpu_read(dev, reg) readl(dev->iomem + reg)
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册