msm: kgsl: Add A540v2 to adreno gpulist
Also add adreno_is_a540v2 function CRs-Fixed: 1072767 Change-Id: Ibf1d5058a1273e1f558afa3871e27c9d124956a5 Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
This commit is contained in:
parent
626caf4e54
commit
eac51723e6
2 changed files with 28 additions and 0 deletions
|
@ -239,6 +239,28 @@ static const struct adreno_gpu_core adreno_gpulist[] = {
|
|||
.num_protected_regs = 0x20,
|
||||
.busy_mask = 0xFFFFFFFE,
|
||||
},
|
||||
{
|
||||
.gpurev = ADRENO_REV_A540,
|
||||
.core = 5,
|
||||
.major = 4,
|
||||
.minor = 0,
|
||||
.patchid = 0,
|
||||
.features = ADRENO_PREEMPTION | ADRENO_64BIT |
|
||||
ADRENO_CONTENT_PROTECTION |
|
||||
ADRENO_GPMU | ADRENO_SPTP_PC,
|
||||
.pm4fw_name = "a530_pm4.fw",
|
||||
.pfpfw_name = "a530_pfp.fw",
|
||||
.zap_name = "a540_zap",
|
||||
.gpudev = &adreno_a5xx_gpudev,
|
||||
.gmem_size = SZ_1M,
|
||||
.num_protected_regs = 0x20,
|
||||
.busy_mask = 0xFFFFFFFE,
|
||||
.gpmufw_name = "a540_gpmu.fw2",
|
||||
.gpmu_major = 3,
|
||||
.gpmu_minor = 0,
|
||||
.gpmu_tsens = 0x000C000D,
|
||||
.max_power = 5448,
|
||||
},
|
||||
{
|
||||
.gpurev = ADRENO_REV_A540,
|
||||
.core = 5,
|
||||
|
|
|
@ -1013,6 +1013,12 @@ static inline int adreno_is_a540v1(struct adreno_device *adreno_dev)
|
|||
(ADRENO_CHIPID_PATCH(adreno_dev->chipid) == 0);
|
||||
}
|
||||
|
||||
static inline int adreno_is_a540v2(struct adreno_device *adreno_dev)
|
||||
{
|
||||
return (ADRENO_GPUREV(adreno_dev) == ADRENO_REV_A540) &&
|
||||
(ADRENO_CHIPID_PATCH(adreno_dev->chipid) == 1);
|
||||
}
|
||||
|
||||
/*
|
||||
* adreno_checkreg_off() - Checks the validity of a register enum
|
||||
* @adreno_dev: Pointer to adreno device
|
||||
|
|
Loading…
Add table
Reference in a new issue