diff options
author | Boris Brezillon <boris.brezillon@collabora.com> | 2019-06-18 11:16:45 +0300 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-06-18 18:23:05 +0300 |
commit | dd082cef99b6e7fd14b17d8a05ac32347a579a41 (patch) | |
tree | 837845b1f7f729137e47b5954c26369b3cb0619e /drivers/gpu/drm/panfrost/panfrost_regs.h | |
parent | eb69c8a4bf5e26ae112793bb04a6cd6c27114900 (diff) | |
download | linux-dd082cef99b6e7fd14b17d8a05ac32347a579a41.tar.xz |
drm/panfrost: Move gpu_{write, read}() macros to panfrost_regs.h
So they can be used from other files.
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618081648.17297-2-boris.brezillon@collabora.com
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_regs.h')
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_regs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_regs.h b/drivers/gpu/drm/panfrost/panfrost_regs.h index 578c5fc2188b..42d08860fd76 100644 --- a/drivers/gpu/drm/panfrost/panfrost_regs.h +++ b/drivers/gpu/drm/panfrost/panfrost_regs.h @@ -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 |