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

Commit e3e0b854 authored by Urvashi Agrawal's avatar Urvashi Agrawal
Browse files

msm: kgsl: Create Adreno family for A640, A650 and A680



The changes needed for A640 mostly apply to A650 and A680 as well,
create a family for these 3 so that we don't have to keep adding
separate checks for them.

Change-Id: I846b645aee5dcfd4a5dfbdaef2dffb8a1dc990af
Signed-off-by: default avatarUrvashi Agrawal <urvaagra@codeaurora.org>
parent 9d2c3982
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1326,6 +1326,14 @@ static inline int adreno_is_a615_family(struct adreno_device *adreno_dev)
			rev == ADRENO_REV_A618);
}

static inline int adreno_is_a640_family(struct adreno_device *adreno_dev)
{
	unsigned int rev = ADRENO_GPUREV(adreno_dev);

	return (rev == ADRENO_REV_A640 || rev == ADRENO_REV_A650 ||
			rev == ADRENO_REV_A680);
}

static inline int adreno_is_a630v1(struct adreno_device *adreno_dev)
{
	return (ADRENO_GPUREV(adreno_dev) == ADRENO_REV_A630) &&