diff options
author | Aravind Ganesan <aravindg@codeaurora.org> | 2014-09-08 23:40:16 +0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2014-11-16 22:27:40 +0300 |
commit | 23bd62fd419755b439152915f4df8ff26346f2b7 (patch) | |
tree | ff9f125cc57f49032497dc8c2aec132bae9048d5 /drivers/gpu/drm/msm/adreno/adreno_gpu.h | |
parent | 91b74e9761d785f41156383ad5ec7c437dfb2960 (diff) | |
download | linux-23bd62fd419755b439152915f4df8ff26346f2b7.tar.xz |
drm/msm: a4xx support for msm-drm
Added a4xx GPU support.
Signed-off-by: Aravind Ganesan <aravindg@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/adreno_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/adreno_gpu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.h b/drivers/gpu/drm/msm/adreno/adreno_gpu.h index b9c05e32af52..a0cc30977e67 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.h +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.h @@ -212,6 +212,16 @@ static inline bool adreno_is_a330v2(struct adreno_gpu *gpu) return adreno_is_a330(gpu) && (gpu->rev.patchid > 0); } +static inline bool adreno_is_a4xx(struct adreno_gpu *gpu) +{ + return (gpu->revn >= 400) && (gpu->revn < 500); +} + +static inline int adreno_is_a420(struct adreno_gpu *gpu) +{ + return gpu->revn == 420; +} + int adreno_get_param(struct msm_gpu *gpu, uint32_t param, uint64_t *value); int adreno_hw_init(struct msm_gpu *gpu); uint32_t adreno_last_fence(struct msm_gpu *gpu); |