diff options
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/adreno_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_gpu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.h b/drivers/gpu/drm/msm/adreno/adreno_gpu.h index dc0e4ad9ea11..38edd4fa16b2 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.h +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.h @@ -61,6 +61,8 @@ struct adreno_gpu { /* firmware: */ const struct firmware *pm4, *pfp; + void __iomem *mmio; + /* ringbuffer rptr/wptr: */ // TODO should this be in adreno_ringbuffer? I think it would be // different for z180.. @@ -133,7 +135,7 @@ void adreno_gpu_cleanup(struct adreno_gpu *gpu); static inline void gpu_write(struct adreno_gpu *gpu, u32 reg, u32 data) { - void __iomem *addr = gpu->base.mmio + (reg << 2); + void __iomem *addr = gpu->mmio + (reg << 2); if (IS_ENABLED(CONFIG_DRM_MSM_REGISTER_LOGGING) && unlikely(adreno_reglog)) @@ -144,7 +146,7 @@ static inline void gpu_write(struct adreno_gpu *gpu, u32 reg, u32 data) static inline u32 gpu_read(struct adreno_gpu *gpu, u32 reg) { - void __iomem *addr = gpu->base.mmio + (reg << 2); + void __iomem *addr = gpu->mmio + (reg << 2); u32 val = readl(addr); if (IS_ENABLED(CONFIG_DRM_MSM_REGISTER_LOGGING) && |