diff options
author | Rob Clark <robdclark@gmail.com> | 2014-09-05 21:30:27 +0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2014-09-10 19:19:08 +0400 |
commit | e2550b7a7d8f2030cfea43343eb3fccc3a8e8167 (patch) | |
tree | db048e044c8c6fe5e0984d2e7067adea5e31e268 /drivers/gpu/drm/msm/adreno/adreno_gpu.h | |
parent | bfd28b136298f37ef2e10494d3a0bfb4dcbaa7b9 (diff) | |
download | linux-e2550b7a7d8f2030cfea43343eb3fccc3a8e8167.tar.xz |
drm/msm/adreno: move decision about what gpu to to load
Move this into into adreno_device, and decide based on gpu revision
rather than just assuming a3xx.
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 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.h b/drivers/gpu/drm/msm/adreno/adreno_gpu.h index 63c36ce33020..a1e1fbb1f509 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.h +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.h @@ -39,7 +39,16 @@ struct adreno_gpu_funcs { struct msm_gpu_funcs base; }; -struct adreno_info; +struct adreno_info { + struct adreno_rev rev; + uint32_t revn; + const char *name; + const char *pm4fw, *pfpfw; + uint32_t gmem; + struct msm_gpu *(*init)(struct drm_device *dev); +}; + +const struct adreno_info *adreno_info(struct adreno_rev rev); struct adreno_rbmemptrs { volatile uint32_t rptr; |