Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff848c40 authored by Carter Cooper's avatar Carter Cooper
Browse files

msm: kgsl: Add A640v2 to the GPU list



Add the handler for A640v2 settings.
Add the adreno_is_a640v2() helper.

Change-Id: I4f4823259cb4ea106f027ef6ed1b79ff902643bf
Signed-off-by: default avatarCarter Cooper <ccooper@codeaurora.org>
parent 117b43f3
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -379,6 +379,27 @@ static const struct adreno_gpu_core adreno_gpulist[] = {
		.gpmu_major = 0x1,
		.gpmu_minor = 0x003,
	},
	{
		.gpurev = ADRENO_REV_A640,
		.core = 6,
		.major = 4,
		.minor = 0,
		.patchid = 0,
		.features = ADRENO_64BIT | ADRENO_RPMH | ADRENO_GPMU |
			ADRENO_IFPC | ADRENO_CONTENT_PROTECTION,
		.sqefw_name = "a630_sqe.fw",
		.zap_name = "a640_zap",
		.gpudev = &adreno_a6xx_gpudev,
		.gmem_size = SZ_1M, //Verified 1MB
		.num_protected_regs = 0x20,
		.busy_mask = 0xFFFFFFFE,
		.gpmufw_name = "a640_gmu.bin",
		.gpmu_major = 0x2,
		.gpmu_minor = 0x000,
		.gpmu_tsens = 0x000C000D,
		.max_power = 5448,
		.va_padding = SZ_64K,
	},
	{
		.gpurev = ADRENO_REV_A640,
		.core = 6,
+6 −0
Original line number Diff line number Diff line
@@ -1272,6 +1272,12 @@ static inline int adreno_is_a640v1(struct adreno_device *adreno_dev)
		(ADRENO_CHIPID_PATCH(adreno_dev->chipid) == 0);
}

static inline int adreno_is_a640v2(struct adreno_device *adreno_dev)
{
	return (ADRENO_GPUREV(adreno_dev) == ADRENO_REV_A640) &&
		(ADRENO_CHIPID_PATCH(adreno_dev->chipid) == 1);
}

/*
 * adreno_checkreg_off() - Checks the validity of a register enum
 * @adreno_dev:		Pointer to adreno device